/* Unified Card Styles */

/* Tinder Gallery styles */
.tinder-gallery {
    position: relative;
    width: 100%;
    height: 80vh; /* Match assistant-tinder */
    margin-bottom: 0;
    overflow: visible;
    max-width: 100vw;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tinder-cards {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    overflow: visible;
    max-width: 100vw;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tinder-card {
    position: absolute;
    width: 85%; /* Unified size */
    height: 95%; /* Unified size */
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    border-radius: 16px; /* Unified border radius */
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s;
    will-change: transform, opacity;
    background: var(--card-bg);
    transform-origin: center bottom;
    max-width: 85vw;
    z-index: 200;
    border: 1px solid var(--text-shadow);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Desktop-specific shadow reduction */
@media (min-width: 600px) {
    .tinder-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Match tinder-gallery card to assistant-tinder card */
.tinder-gallery .tinder-card {
    width: 80%;
    max-width: 350px;
    aspect-ratio: 0.6;
    height: 85%;
    border-radius: 16px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(34, 158, 217, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Desktop-specific shadow reduction for gallery cards */
@media (min-width: 600px) {
    .tinder-gallery .tinder-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.tinder-gallery .tinder-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Assistant Card Styles */
.assistant-card {
    flex: 0 0 300px;
    width: 300px;
    background: rgba(37, 37, 37, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #F9F9F9;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.tinder-card.skeleton {
    position: absolute;
    width: 85%;
    height: 95%;
    max-width: 350px;
    aspect-ratio: 0.6;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--shadow-color-light);
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-color-light);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skeleton-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.skeleton-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.7;
    animation: skeleton-shimmer 2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

.assistant-card:hover {
    animation: cardHover 1s ease-in-out;
    box-shadow: 0 12px 16px var(--shadow-color-light);
    border-color: rgba(143, 126, 252, 0.3);
}

.assistant-card:active {
    transform: scale(0.98);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.assistant-card:hover .cover-image {
    transform: scale(1.05);
}

.detail-cover {
    width: 100%;
    object-fit: cover;
    border-bottom: 2px solid rgba(143, 126, 252, 0.2);
}

/* Card gradient overlay for both image and video */
.card-gradient-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 20%,
        rgba(0, 0, 0, 0.0) 50%);
    z-index: 2;
}

/* Restore Tinder card content for UI elements */
#assistantTinder .tinder-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 3;
    padding: 20px;
    color: #fff;
    background: none;
}

.card-content {
    padding: 20px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    align-items: center;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--accent-pink);
    box-shadow: 0 0 15px var(--shadow-color);
    z-index: 3;
}

.title {
    font-family: 'Satoshi', Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #F9F9F9;
    text-shadow: none;
}

.quote {
    font-style: italic;
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--tg-text);
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 18px;
    background-color: var(--tg-blue);
    box-shadow: 0 2px 5px var(--shadow-color);
    max-width: 85%;
    position: relative;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animate-quote {
    animation: textFadeIn 0.3s ease-out;
    opacity: 1;
}

.description {
    font-family: 'Jost', Arial, sans-serif;
    font-size: 15px;
    color: #F9F9F9;
    margin: 0 0 12px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
    text-shadow: none;
}

.description p {
    margin-top: 0;
}

.skeleton-box {
    background: linear-gradient(
        90deg,
        rgba(37, 37, 37, 0.8) 25%,
        rgba(143, 126, 252, 0.2) 50%,
        rgba(37, 37, 37, 0.8) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border: 1px solid rgba(143, 126, 252, 0.1);
    border-radius: 8px;
}

.skeleton .cover-image {
    display: none;
}

.skeleton .card-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.skeleton-logo {
    width: 30%;
    height: 30%;
    object-fit: contain;
    animation: logoShimmer 1s infinite;
}

.skeleton .avatar {
    width: 40px;
    height: 40px;
    border-radius: 2px;
    border: none;
}

/* Assistant Tinder specific styles */
#assistantTinder .tinder-card .skeleton {
    height: 90%;
    max-height: 70vh;
    width: 85%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    background: rgba(37, 37, 37, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(143, 126, 252, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
    margin: 0 auto;
    border-radius: 2px;
    aspect-ratio: 0.6;
}

#assistantTinder .card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
}

#assistantTinder .tinder-card .cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 2px;
}

#assistantTinder .tinder-card .quote {
    font-style: italic;
    font-size: 16px;
    margin-bottom: 12px;
    color: white;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 0;
    background-color: rgba(61, 172, 244, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-width: 85%;
    position: relative;
}

.interview-count {
    font-size: 14px;
    font-weight: bold;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.interview-count img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 0;
}

/* Welcome Card Styles */
.welcome-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.1s ease;
}

.welcome-card-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--tg-button) 0%, var(--tg-button-dark) 100%);
}

/* Ensure welcome card inherits the same size as other tinder cards */
.tinder-card.welcome-card {
    width: 85% !important; /* Same as other tinder cards */
    height: 95% !important; /* Same as other tinder cards */
    max-width: 350px !important;
    aspect-ratio: 0.6 !important;
    position: absolute !important; /* Ensure it doesn't affect layout flow */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
}

.welcome-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 172, 244, 0.1) 0%, rgba(34, 158, 217, 0.2) 100%);
    z-index: 1;
}

.welcome-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.welcome-swipe-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.welcome-swipe-icon {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    transform-origin: center bottom;
    animation: naturalSwipe 3s ease-in-out infinite;
}

@keyframes naturalSwipe {
    0%, 100% { 
        transform: translateX(0px) rotate(0deg); 
    }
    15% { 
        transform: translateX(6px) rotate(8deg); 
    }
    30% { 
        transform: translateX(-6px) rotate(-8deg); 
    }
    45% { 
        transform: translateX(0px) rotate(0deg); 
    }
    55%, 100% { 
        transform: translateX(0px) rotate(0deg); 
    }
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Satoshi', Arial, sans-serif;
}

.welcome-description {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-align: center;
    margin: 0 0 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.welcome-hint {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    text-align: center;
    margin: 0;
    font-family: 'Jost', Arial, sans-serif;
}

.welcome-swipe-section .welcome-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Animation classes for welcome card */
.welcome-title.animate-welcome-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.welcome-description.animate-welcome-description {
    opacity: 0.9 !important;
    transform: translateY(0) !important;
}

.welcome-hint.animate-welcome-hint {
    opacity: 0.8 !important;
    transform: translateY(0) !important;
}

/* Responsive adjustments for welcome card */
@media (max-width: 480px) {
    .welcome-card-container {
        padding: 30px 25px;
    }
    
    .welcome-icon {
        font-size: 50px;
        margin-bottom: 8px;
    }
    
    .welcome-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .welcome-description {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .welcome-hint {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* Quote Card Styles */
.quote-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px; /* Unified border radius */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-card-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px; /* Unified border radius */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
}

.quote-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.quote-card-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-marks {
    font-size: 60px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
    margin-bottom: 20px;
    font-family: Georgia, serif;
}

.quote-question {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.quote-answer {
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.quote-author {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    text-align: center;
    margin: 15px 0 0 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.quote-interview-button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    margin-top: 20px;
}

.quote-interview-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.interview-button-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.interview-button-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.interview-button-text {
    flex: 1;
    text-align: left;
}

.interview-button-prompt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    font-weight: 400;
}

.interview-button-action {
    font-size: 16px;
    color: white;
    font-weight: 600;
    line-height: 1.2;
}

.quote-interview-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    min-height: 60px;
}

.interview-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.interview-avatar {
    width: auto;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.interview-text {
    flex: 1;
    text-align: left;
}

.quote-interview-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.interview-prompt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    font-weight: 400;
}

.interview-action {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

/* Animation classes */
.quote-question.animate-question {
    opacity: 0.9 !important;
    transform: translateY(0) !important;
}

.quote-answer.animate-answer {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.quote-author.animate-author {
    opacity: 0.8 !important;
    transform: translateY(0) !important;
}

.quote-interview-link.animate-link {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.quote-interview-button.animate-button {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Interview Banner - appears at bottom of screen */
.interview-banner {
    position: fixed;
    bottom: 28px;
    left: 20px;
    right: 20px;
    background: var(--tg-bg);
    border: 1px solid var(--tg-button-dark);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.interview-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.interview-banner:hover {
    background: var(--tg-button-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.interview-banner .interview-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.interview-banner .interview-avatar {
    width: auto;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.interview-banner .interview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interview-banner .interview-text {
    flex: 1;
    text-align: left;
}

.interview-banner .interview-prompt {
    font-size: 14px;
    color: var(--tg-text);
    font-weight: 400;
}

.interview-banner .interview-action {
    font-size: 16px;
    color: var(--tg-text);
    font-weight: 600;
}

/* Responsive adjustments for banner */
@media (max-width: 480px) {
    .interview-banner {
        padding: 16px 16px;
    }
     
    
    .interview-banner .interview-prompt {
        font-size: 13px;
    }
    
    .interview-banner .interview-action {
        font-size: 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .quote-card-container {
        padding: 25px;
    }
    
    .quote-marks {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .quote-question {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .quote-answer {
        font-size: 20px;
        margin: 15px 0;
    }
    
    .quote-interview-link {
        padding: 12px 16px;
        min-height: 50px;
    }
    
    .interview-prompt {
        font-size: 13px;
    }
    
    .interview-action {
        font-size: 15px;
    }
}

/* Tinder card positioning for quotes */
.tinder-card.quote-card {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 85% !important; /* Unified size */
    height: 95% !important; /* Unified size */
    background: transparent;
    border-radius: 16px; /* Unified border radius */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform-origin: center center !important;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Smooth loading transitions */
.tinder-cards {
    transition: opacity 0.3s ease;
}

.tinder-cards.loading {
    opacity: 0.7;
}

/* Skeleton elements styling */
.skeleton-image {
    width: 100%;
    height: 70%;
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--shadow-color-light) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 16px 16px 0 0;
}

.skeleton .card-content {
    padding: 20px;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    height: 30%;
    justify-content: space-between;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--shadow-color-light) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    flex-shrink: 0;
}

.skeleton-title {
    height: 20px;
    width: 120px;
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--shadow-color-light) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

.skeleton-description {
    height: 16px;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--shadow-color-light) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
}

.skeleton-stats {
    height: 14px;
    width: 60px;
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--shadow-color-light) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    margin-top: auto;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Loading skeleton improvements */
.skeleton {
    animation: skeleton-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* Card transition improvements */
.tinder-card {
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.tinder-card.swiped-left,
.tinder-card.swiped-right {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Ensure quote cards follow the same stacking rules as assistant cards */
.tinder-cards .tinder-card.quote-card {
    transform-origin: center center !important;
}

/* Override any conflicting styles */
.quote-card .quote-card-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Default gradient backgrounds for quotes without custom background */
.quote-card-container:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--tg-button) 0%, var(--tg-button-dark) 100%);
}

.quote-card:nth-child(2n) .quote-card-container:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--tg-button) 0%, var(--tg-button-dark) 100%);
}

.quote-card:nth-child(3n) .quote-card-container:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--tg-button) 0%, var(--tg-button-dark) 100%);
}

.quote-card:nth-child(4n) .quote-card-container:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--tg-button) 0%, var(--tg-button-dark) 100%);
}

.quote-card:nth-child(5n) .quote-card-container:not([style*="background-image"]) {
    background: linear-gradient(135deg, var(--tg-button) 0%, var(--tg-button-dark) 100%);
}

/* Subtle swipe hint animation */
@keyframes swipeHint {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(2px) rotate(1deg); }
    75% { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.tinder-card:first-child:not(.skeleton) {
    animation: swipeHint 0.4s ease-in-out 0.4s;
}

.tinder-card.swiping {
    transition: none;
}

.tinder-card.swiped-left {
    transform: translateX(-150%) rotate(-30deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1 !important;
}

.tinder-card.swiped-right {
    transform: translateX(150%) rotate(30deg);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1 !important;
}

.card-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tg-bg);
    color: var(--tg-text);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.swipe-hint {
    position: absolute;
    display: none;
    top: 15px;
    left: 15px;
    background: var(--tg-bg);
    color: var(--tg-text);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    z-index: 20;
    animation: fadeOut 1s forwards 3s;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.tinder-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 100;
}

.tinder-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tinder-button:active {
    transform: scale(0.95);
}

.tinder-dislike {
    background: white;
    color: var(--accent-red);
}

.tinder-like {
    background: white;
    color: var(--accent-pink);
}

/* Reset container styles */
.reset-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeIn 0.8s ease-out forwards;
    gap: 30px;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
}

.reset-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 320px;
}

.reset-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--tg-text);
    line-height: 1.3;
    margin: 0;
    font-family: 'Satoshi', Arial, sans-serif;
}

.reset-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--tg-hint);
    line-height: 1.5;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    opacity: 0.9;
}

.reset-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.create-interview-button {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid var(--tg-button);
    background: var(--tg-button);
    color: var(--tg-button-text);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Satoshi', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(34, 158, 217, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.create-interview-button:hover {
    background: var(--tg-button-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.25);
}

.create-interview-button:active {
    transform: translateY(0) scale(0.98);
}

.reload-topics-button {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid var(--tg-hint);
    background: transparent;
    color: var(--tg-hint);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reload-topics-button:hover {
    background: rgba(var(--tg-hint-rgb, 136, 136, 136), 0.1);
    border-color: var(--tg-text);
    color: var(--tg-text);
}

.reload-topics-button:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .reset-container {
        gap: 25px;
        padding: 30px 15px;
    }
    
    .reset-content {
        gap: 20px;
        max-width: 280px;
    }
    
    .reset-title {
        font-size: 22px;
    }
    
    .reset-description {
        font-size: 15px;
    }
    
    .reset-buttons {
        gap: 14px;
    }
    
    .create-interview-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .reload-topics-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes revealRotation {
    0% { transform: rotate(0deg) scale(0.5); opacity: 0.5; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
    75% { transform: rotate(330deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

@keyframes reverseRotation {
    0% { transform: rotate(0deg) scale(1); opacity: 1; }
    25% { transform: rotate(-180deg) scale(0.95); opacity: 0.9; }
    50% { transform: rotate(-360deg) scale(0.9); opacity: 0.8; }
    75% { transform: rotate(-540deg) scale(0.95); opacity: 0.9; }
    100% { transform: rotate(-720deg) scale(1); opacity: 1; }
}

.rotate-on-click {
    animation: reverseRotation 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0% { transform: scale(1)}
    50% { transform: scale(1.05)}
    100% { transform: scale(1)}
}
