/* SkinDeep Game Show Styles - Lust Theme */

:root {
    --lust-red: #E63946;
    --deep-burgundy: #8B0000;
    --seductive-purple: #6A0572;
    --gold-accent: #FFD700;
    --rose-gold: #E8B4B8;
    --midnight-black: #1A1A1A;
    --dark-velvet: #2D1B2E;
    --crimson-glow: #DC143C;
    --passion-pink: #FF69B4;
}

/* Game Show Background */
body {
    background: linear-gradient(135deg, var(--midnight-black) 0%, var(--dark-velvet) 50%, var(--seductive-purple) 100%);
    background-attachment: fixed;
    font-family: 'Georgia', serif;
    overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
}

/* Mobile body adjustments */
@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* Better performance on mobile */
    }
}

/* Game Show Card Styling */
.game-show-card {
    background: linear-gradient(145deg, var(--dark-velvet), var(--midnight-black));
    border: 2px solid var(--gold-accent);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.3), 0 5px 15px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.game-show-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--lust-red), var(--gold-accent), var(--passion-pink));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.spotlight-text {
    color: var(--gold-accent);
    text-shadow: 0 0 20px var(--gold-accent);
    font-weight: bold;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px var(--gold-accent); }
    to { text-shadow: 0 0 30px var(--gold-accent), 0 0 40px var(--lust-red); }
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.6) !important;
    transition: all 0.3s ease;
}

/* Mobile-Native Privacy Choice Styling */
.privacy-option label {
    cursor: pointer;
    transition: all 0.3s ease;
}

.privacy-option label:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.privacy-option input[type="radio"]:checked + label {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.5);
    border-width: 4px !important;
}

/* Mobile-Native Photo Upload Styling */
.upload-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
}

.upload-card-sm {
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-card-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(106, 5, 114, 0.4);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .privacy-option {
        margin-bottom: 1rem;
    }
    
    .privacy-option label {
        padding: 1.5rem !important;
        font-size: 0.95rem;
    }
    
    .privacy-option i {
        font-size: 2rem !important;
    }
    
    .photo-upload-stack {
        padding: 0 0.5rem;
    }
    
    .upload-card {
        margin-bottom: 1rem;
    }
    
    .submit-section {
        margin: 0 0.5rem;
    }
    
    .spotlight-text {
        font-size: 1.1rem !important;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .btn-lg {
        min-height: 56px;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .privacy-option label h5 {
        font-size: 1rem;
    }
    
    .privacy-option label p {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .game-show-card {
        margin: 0 0.5rem;
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
}

/* Game Show Alert Messages */
.alert {
    border: 2px solid var(--gold-accent);
    border-radius: 15px;
    background: linear-gradient(135deg, var(--dark-velvet), var(--midnight-black));
    color: var(--rose-gold);
    font-weight: bold;
}

.alert-success {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, var(--seductive-purple), var(--deep-burgundy));
}

.alert-danger {
    border-color: var(--lust-red);
    background: linear-gradient(135deg, var(--crimson-glow), var(--deep-burgundy));
}

.alert-warning {
    border-color: var(--gold-accent);
    background: linear-gradient(135deg, var(--gold-accent), var(--rose-gold));
    color: var(--midnight-black);
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Pulsing Animation for Special Elements */
.pulse {
    animation: pulse 2s infinite;
}

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

/* Seductive Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--midnight-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--lust-red), var(--gold-accent));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--passion-pink), var(--rose-gold));
}

/* Phone Mockup */
.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
    background: #333;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.phone-screen {
    background: var(--bs-dark);
    border-radius: 15px;
    padding: 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-preview .profile-card {
    background: var(--bs-body-bg);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    max-width: 250px;
}

.app-preview .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
}

/* Enhanced Leaderboard Styles */
.leaderboard-entry {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.leaderboard-entry:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.leaderboard-entry:hover img {
    transform: scale(1.02);
}

.leaderboard-entry .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

/* Ensure consistent card heights */
.leaderboard-entry .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

/* Badge positioning improvements */
.leaderboard-entry .position-absolute {
    z-index: 20;
}

/* Better responsive spacing */
@media (max-width: 576px) {
    .leaderboard-entry {
        margin-bottom: 1.5rem;
    }
    
    .leaderboard-entry .position-absolute[style*="left"] {
        left: 10px !important;
    }
    
    .leaderboard-entry .position-absolute[style*="right"] {
        right: 10px !important;
    }
    
    .leaderboard-entry .badge {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .leaderboard-entry .card-body {
        padding: 1rem !important;
        min-height: 140px;
    }
}

/* Step Items */
.step-item {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--bs-danger);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Star Rating System */
.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.star {
    font-size: 1.2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half::after {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.rating-number {
    font-weight: bold;
    font-size: 1.1rem;
}

.rating-out-of {
    color: #6c757d;
    font-size: 0.9rem;
}

/* MOBILE RESPONSIVE FIXES */
/* Mobile-first approach with better spacing and layout */

/* Base mobile styles */
@media (max-width: 768px) {
    /* Adjust container padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Header text sizing */
    .display-3 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    /* Navigation fixes */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    .nav-link {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
    
    .navbar-nav .btn {
        margin-top: 0.5rem;
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
    
    /* Card spacing */
    .game-show-card {
        margin-bottom: 2rem;
        border-radius: 15px;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Form elements */
    .form-control-lg {
        font-size: 1rem !important;
        padding: 0.75rem !important;
    }
    
    /* Button spacing */
    .btn {
        margin-bottom: 0.5rem;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
        border-radius: 25px;
    }
    
    /* Form submit button mobile */
    .btn-lg {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
    }
    
    /* Badge responsive */
    .badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 0.5rem;
        display: inline-block;
    }
    
    /* Photo upload section */
    .photo-upload-section {
        margin-bottom: 2rem;
    }
    
    .photo-upload-section .col-md-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Results layout */
    .results-container {
        padding: 1rem;
    }
    
    .trait-card {
        margin-bottom: 1rem;
    }
    
    .trait-card .card-body {
        padding: 1rem !important;
    }
    
    /* Leaderboard fixes */
    .leaderboard-entry {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }
    
    .leaderboard-entry .row > div {
        margin-bottom: 0.5rem;
    }
    
    /* Score display */
    .score-display {
        font-size: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    /* Photo preview */
    .photo-preview {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
    }
    
    /* Text sizing */
    .spotlight-text {
        font-size: 1.25rem !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    /* Upload area responsive */
    .upload-area {
        min-height: 150px;
        padding: 1rem;
        text-align: center;
    }
    
    /* Photo type labels */
    .photo-type-label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem;
    }
    
    /* Prevent horizontal scroll */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12, .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8, .col-lg-10 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Extra small devices (phones, 575px and down) */
@media (max-width: 575px) {
    .display-3 {
        font-size: 2rem !important;
    }
    
    .card-header h3 {
        font-size: 1.5rem !important;
    }
    
    .btn {
        font-size: 0.9rem !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .badge {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.8rem !important;
    }
    
    .trait-card h6 {
        font-size: 0.9rem !important;
    }
    
    .score-display {
        font-size: 1.25rem !important;
    }
}

/* Tablet responsive (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .display-3 {
        font-size: 3rem !important;
    }
    
    .card-body {
        padding: 2rem !important;
    }
    
    .leaderboard-entry {
        padding: 1.5rem !important;
    }
}

/* Fix for overlapping elements */
.no-overlap {
    position: relative;
    z-index: 1;
}

/* Ensure buttons don't overlap */
.btn-group-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .btn-group-mobile {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Quality Badges */
.quality-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .quality-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

.quality-excellent {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quality-good {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.quality-average {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.quality-poor {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Trait Cards */
.trait-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--bs-body-bg);
}

.trait-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.trait-card.bg-light {
    background: #f8f9fa !important;
    border-color: #dee2e6;
    opacity: 0.8;
}

.trait-card.bg-light:hover {
    transform: none;
    box-shadow: none;
}

.trait-card .card-body {
    padding: 1rem;
}

.trait-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    color: var(--bs-primary);
}

/* Swipe Card Enhancements */
.swipe-card .trait-analysis {
    background: rgba(0,0,0,0.05);
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.swipe-card .trait-quick-view {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.swipe-card .trait-name {
    font-weight: 600;
    color: var(--bs-dark);
}

.swipe-card .trait-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Profile Page */
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid var(--bs-border-color);
}

.no-image-placeholder {
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--bs-border-color);
    border-radius: 50%;
    margin: 0 auto;
}

.trait-item {
    background: var(--bs-secondary-bg);
    padding: 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
}

/* Photo upload sections */
.photo-upload-section {
    margin-bottom: 2rem;
}

.photo-category {
    background: var(--bs-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
}

.photo-slot {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--bs-body-bg);
}

.photo-container {
    position: relative;
    width: 100%;
    height: 200px;
    border: 2px dashed var(--bs-border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-light);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.photo-container:hover {
    border-color: var(--bs-primary);
    background: var(--bs-primary-bg-subtle);
}

.photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.photo-placeholder {
    text-align: center;
    color: var(--bs-muted);
}

.photo-placeholder i {
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.photo-placeholder p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-form .form-control {
    border: 1px solid var(--bs-border-color);
}

.upload-form .btn {
    align-self: flex-start;
}

/* Photo category headers */
.photo-category h6 {
    color: var(--bs-heading-color);
    border-bottom: 2px solid var(--bs-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Form labels */
.photo-slot .form-label {
    font-weight: 600;
    color: var(--bs-heading-color);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Upload button styling */
.upload-form .btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    font-size: 0.85rem;
    padding: 0.375rem 0.75rem;
}

.upload-form .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Info alert styling */
.photo-upload-section .alert-info {
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info-border-subtle);
    color: var(--bs-info-text-emphasis);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-container {
        height: 150px;
    }
    
    .photo-category {
        padding: 1rem;
    }
    
    .upload-form .btn {
        width: 100%;
        text-align: center;
    }
}

/* Swipe Cards */
.swipe-container {
    max-width: 400px;
    margin: 0 auto;
}

.card-stack {
    position: relative;
    height: 600px;
    perspective: 1000px;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease;
}

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

.swipe-card .card {
    height: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-radius: 15px;
    overflow: hidden;
}

.swipe-card .card-img-top {
    height: 70%;
    object-fit: cover;
}

.swipe-card.swiping-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.3);
    z-index: 1;
    border-radius: 15px;
}

.swipe-card.swiping-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 53, 69, 0.3);
    z-index: 1;
    border-radius: 15px;
}

.swipe-actions {
    margin-top: 2rem;
}

.swipe-actions button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.swipe-actions button:hover {
    transform: scale(1.1);
}

.trait-selector {
    background: var(--bs-body-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
}

.trait-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Match Cards */
.match-card {
    transition: transform 0.2s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* Chat Styles */
.chat-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--bs-body-bg);
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bs-secondary-bg);
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.message-current-user {
    justify-content: flex-end;
}

.message-other {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    background: var(--bs-primary);
    color: white;
}

.message-other .message-content {
    background: var(--bs-secondary);
    color: var(--bs-body-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.message-sender {
    font-weight: 500;
}

.message-time {
    font-size: 0.75rem;
}

.message-text {
    word-wrap: break-word;
}

.message-system {
    justify-content: center;
}

.message-system .message-content {
    background: transparent;
    color: var(--bs-secondary-color);
    font-style: italic;
}

.chat-input {
    padding: 1rem;
    background: var(--bs-body-bg);
    border-top: 1px solid var(--bs-border-color);
}

.chat-hints {
    font-size: 0.875rem;
}

/* Match Modal */
.match-celebration {
    animation: celebration 0.5s ease-in-out;
}

@keyframes celebration {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

/* Error Page */
.error-icon {
    animation: pulse 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .phone-mockup {
        max-width: 250px;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .no-image-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .swipe-container {
        padding: 0 1rem;
    }
    
    .card-stack {
        height: 500px;
    }
    
    .chat-container {
        height: calc(100vh - 80px);
    }
    
    .message-content {
        max-width: 85%;
    }
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--bs-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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