/**
 * Swipe Mode Styles - Full Screen TikTok Style
 */

/* Navigation as overlay on swipe page - TikTok style */
body:has(.swipe-page) #main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    border-bottom: none;
    box-shadow: none;
}

body:has(.swipe-page) #main-nav .nav-link,
body:has(.swipe-page) #main-nav .profile-avatar {
    color: white;
}

body:has(.swipe-page) #main-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

body:has(.swipe-page) #main-nav .avatar-initials {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

body:has(.swipe-page) #main-nav .profile-dropdown {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

body:has(.swipe-page) #main-nav .profile-dropdown-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(236, 72, 153, 0.8) 100%);
}

body:has(.swipe-page) #main-nav .profile-dropdown-item {
    color: white;
}

body:has(.swipe-page) #main-nav .profile-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.swipe-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 10;
}

.swipe-container {
    width: 100%;
    height: 100vh;
    position: relative;
    perspective: 1000px;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: grab;
    transition: transform 0.3s ease;
    overflow: hidden;
    background: #000;
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.swipe-right-hint {
    filter: brightness(1.2);
}

.swipe-card.swipe-left-hint {
    filter: brightness(0.8);
}

/* Cover Media - Full Screen */
.swipe-card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bottom Overlay - TikTok Style */
.swipe-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 100%);
    padding: 6rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.swipe-card-info-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
    pointer-events: none;
}

.swipe-card-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.swipe-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.swipe-user-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.swipe-card-username {
    font-size: var(--font-size-sm);
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.swipe-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.swipe-card-emojis {
    font-size: var(--font-size-xl);
    line-height: 1;
    letter-spacing: 0.3rem;
    opacity: 0.95;
}

/* Swipe Controls in Overlay */
.swipe-controls-overlay {
    display: flex;
    justify-content: center;
    gap: 2rem;
    pointer-events: auto;
}

/* Swipe Buttons */
.swipe-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.swipe-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

.swipe-btn-dismiss {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.swipe-btn-dismiss:hover {
    background: rgba(239, 68, 68, 1);
}

.swipe-btn-interested {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.swipe-btn-interested:hover {
    background: rgba(16, 185, 129, 1);
}

/* Loading & Empty States */
.swipe-loading,
.swipe-empty,
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    color: white;
    padding: 2rem;
}

.swipe-empty h2 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
}

/* Navigation Styles */
.nav-link {
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

/* Right Side Actions - TikTok Style */
.swipe-actions-right {
    position: absolute;
    right: var(--spacing-md);
    bottom: 10rem;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    z-index: 50;
}

.swipe-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    transition: transform var(--transition-base);
    color: white;
}

.swipe-action-btn:hover {
    transform: scale(1.1);
}

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

.swipe-action-btn svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.swipe-action-label {
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Share Menu Overlay */
.share-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--spacing-lg);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.share-menu {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.share-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.share-menu-header h3 {
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.share-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--spacing-xs);
    border-radius: var(--radius-md);
    transition: background var(--transition-base);
}

.share-menu-close:hover {
    background: var(--bg-tertiary);
}

.share-menu-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.share-option:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.share-option:active {
    transform: translateY(0);
}

.share-option-icon {
    font-size: 2rem;
}

.share-option-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .swipe-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .swipe-card-overlay {
        padding: 8rem 1rem 2rem;
        gap: 1.5rem;
    }

    .swipe-controls-overlay {
        gap: 2rem;
    }

    .swipe-card-title {
        font-size: var(--font-size-lg);
    }

    .swipe-card-emojis {
        font-size: var(--font-size-lg);
    }

    .swipe-actions-right {
        right: var(--spacing-sm);
        bottom: 8rem;
    }

    .swipe-action-btn svg {
        width: 28px;
        height: 28px;
    }

    .share-menu-options {
        grid-template-columns: repeat(3, 1fr);
        padding: var(--spacing-lg);
    }
}
