/*
Theme Name: GlamSocial
Theme URI: https://example.com/glamsocial
Author: Antigravity
Author URI: https://example.com
Description: A premium dark-mode theme for creators, based on a Next.js design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark-mode, photography, portfolio, two-column
Text Domain: glamsocial
*/

/* 
 * This theme uses Tailwind CSS via CDN for styling. 
 * Add custom overrides below if necessary.
 */

/* ============================================
 * Animated Thumbnail Hover Effects
 * ============================================ */

.video-thumbnail-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

/* Static thumbnail - shown by default */
.video-thumbnail-static {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Animated thumbnail - hidden by default */
.video-thumbnail-animated {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* On hover - swap thumbnails */
.video-thumbnail-wrapper:hover .video-thumbnail-static {
    opacity: 0;
}

.video-thumbnail-wrapper:hover .video-thumbnail-animated {
    display: block;
    opacity: 1;
}

/* Play overlay icon */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.video-thumbnail-wrapper:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Duration badge */
.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Loading state */
.video-thumbnail-wrapper.loading .video-thumbnail-animated {
    opacity: 0.5;
}

/* Mobile optimization - disable hover on touch devices */
@media (hover: none) {
    .video-thumbnail-wrapper:hover .video-thumbnail-static {
        opacity: 1;
    }

    .video-thumbnail-wrapper:hover .video-thumbnail-animated {
        display: none;
        opacity: 0;
    }
}