/* ============================================
   STANDARDIZED CONTENT STYLING
   For all pages: play, prizes, winners, profile, how-to-play, token-store, etc.
   ============================================ */

/* Base Typography - Improved Readability */
.dashboard-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px; /* Base font size for better readability */
    line-height: 1.7; /* Improved line height for readability */
    color: #f0f0f0; /* Softer off-white for better readability */
}

/* Standardized Section Styling */
.content-section {
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    background: transparent !important;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Titles */
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #E91E63 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.page-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #e8e8e8;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Section Headings */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #f5f5f5;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Content Text - Improved Readability */
.content-text {
    font-size: 1.0625rem; /* 17px - better readability */
    line-height: 1.75;
    color: #e8e8e8;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content-text p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #e8e8e8;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.content-text ul,
.content-text ol {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #e8e8e8;
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.content-text li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
}

.content-text h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #f0f0f0;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-text h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: #e8e8e8;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Standardized Card Styling */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-glass);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2a2a2a;
    margin-bottom: 1rem;
}

/* Grid Layouts */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Buttons - Standardized */
.btn-primary {
    background: linear-gradient(135deg, #E91E63 0%, #2196F3 100%);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

/* Purchase Now / Buy Tokens - Green throughout webapp */
.btn-purchase,
.token-package-card .package-button:not(:disabled),
.btn-buy-tokens-mobile {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35) !important;
    color: white !important;
}
.btn-purchase:hover,
.token-package-card .package-button:hover:not(:disabled),
.btn-buy-tokens-mobile:hover {
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.45) !important;
    color: white !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Step Cards (for How to Play, etc.) */
.step-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E91E63 0%, #2196F3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.step-description {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #2a2a2a;
    margin: 0;
}

/* Stats Cards */
.stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-glass);
}

.stats-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, #E91E63 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: #2a2a2a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #d0d0d0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.empty-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.empty-text {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #d0d0d0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #d0d0d0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Legal Page Styling (Terms, Privacy) */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-glass);
}

.legal-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #E91E63 0%, #2196F3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.legal-last-updated {
    color: #d0d0d0;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.legal-section {
    margin-bottom: 2.5rem;
    color: #2a2a2a;
}

.legal-section h2 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    padding-top: 1rem;
    line-height: 1.3;
}

.legal-section h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.legal-section p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 1rem;
    color: #2a2a2a;
}

.legal-section ul,
.legal-section ol {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 1.25rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    color: #2a2a2a;
}

.legal-section a {
    color: #4CAF50;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.legal-section a:hover {
    color: #45a049;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .dashboard-body {
        font-size: 15px;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .content-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .content-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 1.5rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .dashboard-body {
        font-size: 14px;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .content-text {
        font-size: 0.9375rem; /* 15px */
        line-height: 1.65;
    }
    
    .content-text p {
        font-size: 0.9375rem;
        line-height: 1.65;
    }
    
    .content-card {
        padding: 1.25rem;
    }
    
    .step-card {
        padding: 1.25rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-title {
        font-size: 1.75rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
}
