/* Swipes Header Styles */
.swipes-header {
    padding: 20px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    margin: 0 15px;
}

.swipes-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.swipes-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.swipes-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.swipes-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.swipes-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.swipes-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    padding-left: 10px;
}

@media (max-width: 768px) {
    .swipes-header {
        padding: 15px 12px;
        margin: 0 10px;
    }

    .swipes-header-content {
        gap: 12px;
    }

    .swipes-icon {
        width: 40px;
        height: 40px;
    }

    .swipes-icon svg {
        width: 22px;
        height: 22px;
    }

    .swipes-title {
        font-size: 26px;
    }

    .swipes-badge {
        padding: 5px 12px;
        font-size: 12px;
    }

    .swipes-subtitle {
        font-size: 14px;
        padding-left: 52px;
    }
}

/* Main Wrapper - Container Mode */
.swipes-main-wrapper {
    position: relative;
    display: flex;
    width: 100%;
    height: 600px;
    /* Default container height */
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Fullscreen Mode */
.swipes-main-wrapper:fullscreen {
    height: 100vh;
    border-radius: 0;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.fullscreen-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.fullscreen-toggle svg {
    width: 24px;
    height: 24px;
}

/* Reels Container */
.reels-container {
    flex: 1;
    position: relative;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.reels-container::-webkit-scrollbar {
    display: none;
}

/* Individual Reel */
.reel {
    position: relative;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 20%,
            transparent 60%,
            rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

/* Login Sidebar */
.login-sidebar {
    position: relative;
    width: 320px;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
}

.login-sidebar::-webkit-scrollbar {
    width: 6px;
}

.login-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.login-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.login-sidebar-content {
    text-align: center;
    color: white;
}

.sidebar-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

.sidebar-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.sidebar-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.sidebar-description {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.5;
}

.sidebar-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.sidebar-features li {
    padding: 10px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-features li::before {
    content: "✓";
    display: inline-block;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
    flex-shrink: 0;
}

.login-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.login-btn:active {
    transform: translateY(0) scale(1.02);
}

/* Reel Controls */
.reel-controls {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    pointer-events: auto;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.control-btn:hover {
    transform: scale(1.15);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:hover .control-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.control-icon svg {
    width: 100%;
    height: 100%;
}

.control-btn.liked .control-icon {
    background: linear-gradient(135deg, #ff2e63 0%, #ff6b9d 100%);
    animation: likeAnimation 0.4s ease;
}

@keyframes likeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.control-btn.saved .control-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.control-text {
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Reel Info Section */
.reel-info {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 90px;
    color: white;
    z-index: 10;
    pointer-events: auto;
}

.author-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.follow-btn {
    background: linear-gradient(135deg, #ff2e63 0%, #ff6b9d 100%);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.4);
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 46, 99, 0.6);
}

.reel-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.reel-description {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.9;
    font-weight: 600;
}

/* Play/Pause Overlay */
.play-pause-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-pause-overlay.show {
    opacity: 1;
    animation: fadeInOut 0.6s ease;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.play-pause-overlay svg {
    width: 40px;
    height: 40px;
    color: white;
}

/* Volume Control */
.volume-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.volume-control:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.volume-control svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 10;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff2e63 0%, #ff6b9d 100%);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 46, 99, 0.5);
}

/* Navigation Hints */
.navigation-hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    opacity: 0.8;
    font-weight: 600;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.nav-hint-up {
    top: 20px;
}

.nav-hint-down {
    bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-sidebar {
        width: 280px;
        padding: 25px 15px;
    }

    .sidebar-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .swipes-main-wrapper {
        height: 500px;
    }

    .login-sidebar {
        width: 100%;
        height: auto;
        max-height: 40%;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        padding: 20px 15px;
    }

    .sidebar-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }

    .sidebar-icon svg {
        width: 30px;
        height: 30px;
    }

    .sidebar-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .sidebar-description {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .sidebar-features {
        margin-bottom: 15px;
    }

    .sidebar-features li {
        padding: 7px 0;
        font-size: 12px;
    }

    .login-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .reel-info {
        bottom: 60px;
        left: 15px;
        right: 75px;
    }

    .reel-controls {
        right: 12px;
        gap: 18px;
    }

    .control-icon {
        width: 40px;
        height: 40px;
    }
}

/* Fullscreen Specific Styles */
.swipes-main-wrapper:fullscreen .reel {
    height: 100vh;
}

.swipes-main-wrapper:fullscreen .login-sidebar {
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    width: 350px;
}

@media (max-width: 768px) {
    .swipes-main-wrapper:fullscreen .login-sidebar {
        width: 100%;
        height: auto;
        max-height: 50%;
        bottom: 0;
        top: auto;
    }
}