/*
 * NotHere.one Stylesheet
 * ======================
 * Colors:
 * - Teal (primary): #2A9D8F
 * - Teal dark: #238B7E
 * - Charcoal: #264653
 * - White: #FFFFFF
 * - Off-white: #F8F9FA
 * - Gold (accent): #E9C46A
 * - Gold dark: #D4A84B
 * - Success green: #4CAF50
 * - Error red: #E63946
 */

/* ============================================================================
   RESET & BASE
   ============================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #264653;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2A9D8F;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #238B7E;
    text-decoration: underline;
}

ul, ol {
    list-style-position: inside;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header.header-minimal {
    border-bottom: none;
    position: absolute;
    width: 100%;
    background: transparent;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #264653;
}

.logo-dot {
    color: #2A9D8F;
}

/* Header Search */
.header-search-form {
    flex: 1;
    max-width: 600px;
    display: flex;
}

.header-search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 2px solid #E0E0E0;
    border-right: none;
    border-radius: 24px 0 0 24px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.header-search-input:focus {
    border-color: #2A9D8F;
}

.header-search-btn {
    padding: 0.5rem 1rem;
    background: #2A9D8F;
    color: white;
    border-radius: 0 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.header-search-btn:hover {
    background: #238B7E;
}

/* Header Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-link, .nav-btn {
    padding: 0.5rem;
    color: #264653;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.nav-link:hover, .nav-btn:hover {
    background: #F0F0F0;
    text-decoration: none;
}

/* Points Display */
.points-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #E9C46A, #D4A84B);
    border-radius: 20px;
    color: #264653;
    font-weight: 600;
    font-size: 0.875rem;
}

.points-icon {
    font-size: 1rem;
}

.points-label {
    font-weight: 400;
    opacity: 0.8;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

.main-content {
    flex: 1;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: #264653;
    color: #FFFFFF;
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a, .footer-link-btn {
    color: #FFFFFF;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-links a:hover, .footer-link-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.footer-divider {
    margin: 0 0.75rem;
    opacity: 0.5;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================================================
   HOMEPAGE
   ============================================================================ */

.homepage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 80px;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-logo {
    margin-bottom: 1rem;
}

.owl-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #264653;
    margin-bottom: 0.25rem;
}

.hero-dot {
    color: #2A9D8F;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Main Search Form */
.search-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.search-box:focus-within {
    box-shadow: 0 4px 25px rgba(42, 157, 143, 0.25);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #E0E0E0;
    border-right: none;
    font-size: 1.125rem;
    outline: none;
    border-radius: 30px 0 0 30px;
}

.search-input:focus {
    border-color: #2A9D8F;
}

.search-btn {
    padding: 1rem 1.5rem;
    background: #2A9D8F;
    color: white;
    border-radius: 0 30px 30px 0;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #238B7E;
}

/* Hero Info Button */
.hero-info {
    margin-top: 1.5rem;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: #666;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.info-btn:hover {
    background: #F0F0F0;
    color: #2A9D8F;
}

/* Stats Section */
.stats-section {
    text-align: center;
    margin-top: 2rem;
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2A9D8F;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: #E0E0E0;
}

.stats-updated {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #999;
}

/* Features Section */
.features-section {
    margin-top: 3rem;
}

.features-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.25rem;
}

/* Points Teaser */
.points-teaser {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #FFF8E7, #FFF3D4);
    border-radius: 12px;
    border: 1px solid #E9C46A;
}

.points-teaser-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.points-teaser-icon {
    font-size: 1.5rem;
}

.points-teaser-link {
    color: #D4A84B;
    font-weight: 600;
}

/* ============================================================================
   SEARCH RESULTS PAGE
   ============================================================================ */

.results-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E0E0E0;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-meta {
    color: #666;
    font-size: 0.9rem;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-sort label {
    font-size: 0.9rem;
    color: #666;
}

.sort-select {
    padding: 0.4rem 0.75rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Results List */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Result Item */
.result-item {
    padding: 1.25rem;
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.result-item:hover {
    border-color: #2A9D8F;
    box-shadow: 0 2px 12px rgba(42, 157, 143, 0.1);
}

.result-item.focused {
    border-color: #2A9D8F;
    box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.2);
}

.result-header {
    margin-bottom: 0.5rem;
}

.result-domain-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.result-domain {
    font-size: 0.8rem;
    color: #666;
}

/* Score Badge */
.score-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.badge-high {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-medium {
    background: #E3F2FD;
    color: #1565C0;
}

.badge-low {
    background: #FFF8E1;
    color: #F57F17;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.result-title a {
    color: #264653;
}

.result-title a:hover {
    color: #2A9D8F;
}

.result-url {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.result-url a {
    color: #2A9D8F;
}

.result-snippet {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Badges Row */
.result-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.equity-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.equity-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: #F0FDF4;
    color: #166534;
    border-radius: 12px;
    border: 1px solid #86EFAC;
}

.result-date {
    font-size: 0.75rem;
    color: #999;
    margin-left: auto;
}

/* ============================================================================
   MEDIA LITERACY BOX
   ============================================================================ */

.media-literacy-box {
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Prompt Styles */
.ml-prompt {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    flex-wrap: wrap;
}

.ml-side-quest {
    background: linear-gradient(135deg, #FFF8E7, #FFF3D4);
    border: 2px solid #E9C46A;
}

.ml-hold-up {
    background: linear-gradient(135deg, #FFF0F0, #FFE8E8);
    border: 2px solid #E57373;
}

.ml-prompt-icon {
    font-size: 2rem;
}

.ml-prompt-content {
    flex: 1;
    min-width: 200px;
}

.ml-prompt-title {
    font-weight: 700;
    font-size: 1rem;
    color: #264653;
    margin-bottom: 0.25rem;
}

.ml-prompt-text {
    font-size: 0.9rem;
    color: #666;
}

.ml-prompt-btn {
    padding: 0.6rem 1.2rem;
    background: #264653;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ml-prompt-btn:hover {
    background: #1D3640;
    transform: translateY(-1px);
}

.ml-points {
    opacity: 0.9;
    font-size: 0.8rem;
}

/* Expanded Content */
.ml-expanded {
    background: #F8F9FA;
    border: 2px solid #2A9D8F;
    border-radius: 10px;
    padding: 1.25rem;
}

.ml-expanded-animate {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ml-points-awarded {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #E9C46A, #D4A84B);
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ml-points-flash {
    font-size: 1.25rem;
    font-weight: 700;
    color: #264653;
}

.ml-points-flash.flash {
    animation: flashPulse 0.5s ease 3;
}

@keyframes flashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.ml-points-total {
    font-size: 0.9rem;
    color: #264653;
}

.ml-claim-section, .ml-counter-section, .ml-sources-section {
    margin-bottom: 1rem;
}

.ml-claim-label, .ml-counter-label, .ml-sources-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #264653;
}

.ml-claim-text {
    font-style: italic;
    color: #666;
    padding: 0.75rem;
    background: #FFEBEE;
    border-radius: 6px;
    border-left: 3px solid #E63946;
}

.ml-counter-text {
    color: #444;
    padding: 0.75rem;
    background: #E8F5E9;
    border-radius: 6px;
    border-left: 3px solid #4CAF50;
}

.ml-sources-list {
    list-style: none;
}

.ml-source-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 0.9rem;
}

.ml-source-item:last-child {
    border-bottom: none;
}

.ml-source-link {
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

/* ============================================================================
   FEEDBACK BUTTONS
   ============================================================================ */

.result-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #F0F0F0;
}

.feedback-label {
    font-size: 0.8rem;
    color: #999;
}

.feedback-btn {
    padding: 0.35rem 0.75rem;
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.feedback-btn:hover {
    background: #F5F5F5;
}

.feedback-btn.active.feedback-helpful {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.feedback-btn.active.feedback-not-helpful {
    background: #FFEBEE;
    border-color: #E57373;
    color: #C62828;
}

.feedback-count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */

.pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E0E0E0;
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn, .pagination-num {
    padding: 0.5rem 1rem;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #264653;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(.disabled), .pagination-num:hover {
    background: #2A9D8F;
    border-color: #2A9D8F;
    color: white;
    text-decoration: none;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-num.current {
    background: #2A9D8F;
    border-color: #2A9D8F;
    color: white;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: #999;
}

.pagination-info {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #999;
}

/* ============================================================================
   ERROR & EMPTY STATES
   ============================================================================ */

.results-error, .results-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.error-icon, .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.results-error h2, .results-empty h2 {
    color: #264653;
    margin-bottom: 0.5rem;
}

.results-empty ul {
    list-style: none;
    color: #666;
    margin-top: 1rem;
}

.results-empty li {
    padding: 0.25rem 0;
}

/* ============================================================================
   ERROR PAGES (404, 500)
   ============================================================================ */

.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-container {
    text-align: center;
    max-width: 400px;
}

.error-container .error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #2A9D8F;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.5rem;
    color: #264653;
    margin-bottom: 1rem;
}

.error-message {
    color: #666;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.error-btn.primary {
    background: #2A9D8F;
    color: white;
}

.error-btn.primary:hover {
    background: #238B7E;
    text-decoration: none;
}

.error-btn.secondary {
    background: #F5F5F5;
    color: #264653;
    border: 1px solid #E0E0E0;
}

.error-btn.secondary:hover {
    background: #E8E8E8;
}

/* ============================================================================
   PRIVACY PAGE
   ============================================================================ */

.privacy-page {
    padding: 2rem;
}

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #2A9D8F;
}

.privacy-header h1 {
    font-size: 2.5rem;
    color: #264653;
}

.privacy-updated {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.privacy-section {
    margin-bottom: 2rem;
}

.privacy-section h2 {
    font-size: 1.4rem;
    color: #264653;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #E0E0E0;
}

.privacy-section h3 {
    font-size: 1.1rem;
    color: #2A9D8F;
    margin: 1rem 0 0.5rem;
}

.privacy-section p {
    color: #444;
    margin-bottom: 0.75rem;
}

.privacy-section ul {
    color: #444;
    margin-left: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.privacy-highlight {
    background: linear-gradient(135deg, #E8F6F5, #D4EFED);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2A9D8F;
}

.privacy-highlight h2 {
    border: none;
    padding: 0;
}

.privacy-dont-list {
    list-style: none;
    margin-left: 0;
}

.privacy-dont-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.dont-icon {
    color: #E63946;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Filtering Grid */
.filtering-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.filtering-card {
    padding: 1.25rem;
    border-radius: 10px;
}

.filtering-card h3 {
    margin-top: 0;
}

.filtering-card ul {
    margin-left: 0;
    list-style: none;
}

.filtering-card li {
    padding: 0.3rem 0;
}

.filtering-card li::before {
    content: "•";
    margin-right: 0.5rem;
}

.filtering-exclude {
    background: #FFF5F5;
    border: 1px solid #FFCDD2;
}

.filtering-boost {
    background: #F0FDF4;
    border: 1px solid #A7F3D0;
}

.filtering-note {
    font-style: italic;
    color: #666;
}

.privacy-contact a {
    font-weight: 600;
}

.privacy-back {
    margin-top: 3rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #F5F5F5;
    border-radius: 25px;
    color: #264653;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: #E8E8E8;
    text-decoration: none;
}

/* ============================================================================
   LEADERBOARD PAGE
   ============================================================================ */

.leaderboard-page {
    padding: 2rem;
}

.leaderboard-container {
    max-width: 700px;
    margin: 0 auto;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.leaderboard-header h1 {
    font-size: 2.5rem;
    color: #264653;
}

.leaderboard-subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* User Stats Card */
.user-stats-card {
    background: linear-gradient(135deg, #E9C46A, #D4A84B);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.user-stats-icon {
    font-size: 3rem;
}

.user-stats-content {
    flex: 1;
}

.user-stats-points {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.user-points-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #264653;
}

.user-points-label {
    font-size: 1rem;
    color: #264653;
    opacity: 0.8;
}

.user-stats-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.25rem;
    color: #264653;
    opacity: 0.8;
    font-size: 0.9rem;
}

.user-stats-cta {
    width: 100%;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(38, 70, 83, 0.2);
    margin-top: 0.5rem;
}

.user-stats-cta p {
    color: #264653;
    margin-bottom: 0.75rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: #264653;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #1D3640;
    text-decoration: none;
}

/* Earn Points Info */
.earn-points-info {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.earn-points-info h2 {
    font-size: 1.1rem;
    color: #264653;
    margin-bottom: 1rem;
}

.earn-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.earn-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.earn-icon {
    font-size: 1.25rem;
}

.earn-text {
    flex: 1;
    color: #444;
}

.earn-points {
    font-weight: 600;
    color: #2A9D8F;
}

/* Leaderboard Table */
.leaderboard-table-wrapper {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.leaderboard-table th {
    background: #264653;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.leaderboard-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #F0F0F0;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover {
    background: #F8F9FA;
}

.leaderboard-table tr.current-user {
    background: #FFF8E7;
}

.leaderboard-table tr.current-user:hover {
    background: #FFF3D4;
}

.leaderboard-table tr.top-three {
    font-weight: 500;
}

.col-rank {
    width: 80px;
}

.col-points, .col-quests {
    width: 100px;
    text-align: right;
}

.rank-medal {
    font-size: 1.5rem;
}

.rank-number {
    color: #666;
}

.user-you {
    font-weight: 600;
    color: #2A9D8F;
}

.user-anonymous {
    color: #666;
    font-family: monospace;
}

.points-value {
    font-weight: 600;
    color: #264653;
}

.leaderboard-note {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Empty Leaderboard */
.leaderboard-empty {
    text-align: center;
    padding: 3rem;
    background: #F8F9FA;
    border-radius: 12px;
}

.leaderboard-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.leaderboard-empty h2 {
    color: #264653;
    margin-bottom: 0.5rem;
}

.leaderboard-empty p {
    color: #666;
    margin-bottom: 1.5rem;
}

.leaderboard-motivation {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.leaderboard-back {
    margin-top: 2rem;
    text-align: center;
}

/* ============================================================================
   MODAL
   ============================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    color: #999;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #F0F0F0;
    color: #264653;
}

.modal-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.modal-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.modal-header h2 {
    color: #264653;
    font-size: 1.5rem;
}

.modal-body {
    padding: 0 2rem 2rem;
}

.modal-body h3 {
    color: #2A9D8F;
    font-size: 1.1rem;
    margin: 1.5rem 0 0.75rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: #444;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    color: #444;
    margin-left: 1rem;
}

.modal-body li {
    margin-bottom: 0.35rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 1rem;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .header-search-form {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .owl-logo {
        width: 120px;
        height: 120px;
    }
    
    .search-input {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .stats-container {
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .features-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ml-prompt {
        flex-direction: column;
        text-align: center;
    }
    
    .pagination-numbers {
        display: flex;
        gap: 0.25rem;
    }
    
    .user-stats-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-stats-details {
        justify-content: center;
    }
    
    .privacy-header h1, .leaderboard-header h1 {
        font-size: 2rem;
    }
    
    .filtering-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .owl-logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-text {
        display: none;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 12px;
    }
    
    .search-input {
        border-radius: 12px 12px 0 0;
        border-right: 2px solid #E0E0E0;
        border-bottom: none;
    }
    
    .search-btn {
        border-radius: 0 0 12px 12px;
        padding: 0.75rem;
    }
    
    .header-search-input {
        border-radius: 12px 12px 0 0;
        border-right: 2px solid #E0E0E0;
        border-bottom: none;
    }
    
    .header-search-btn {
        border-radius: 0 0 12px 12px;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
}
