/**
 * WP Jackpot Proof - Additional Theme Styles
 *
 * @package WP_Jackpot_Proof
 */

/* ==========================================================================
   Additional Layout Styles
   ========================================================================== */

/* Category Filter */
.category-filter {
    margin-bottom: 30px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.category-list .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

.category-list .count {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
}

/* Search Form Large */
.search-form-large {
    max-width: 500px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
}

.search-form-large .search-field {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-size: 1rem;
}

.search-form-large .search-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-again {
    margin-bottom: 30px;
}

/* No Content Message */
.no-content-message {
    text-align: center;
    padding: 60px 20px;
}

.no-content-message i {
    margin-bottom: 20px;
}

.no-content-message h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.no-content-message p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Post Navigation */
.post-navigation {
    margin: 40px 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Related Jackpots */
.related-jackpots {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

/* Jackpot Categories */
.jackpot-categories {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.jackpot-categories .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Jackpot Description */
.jackpot-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    line-height: 1.8;
}

.jackpot-description p {
    margin-bottom: 15px;
}

/* Error Page 404 */
.error-404 .error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.error-search {
    max-width: 400px;
    margin: 0 auto 50px;
}

.error-search p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.error-search .search-form {
    display: flex;
    gap: 10px;
}

.error-search .search-field {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    color: var(--secondary-color);
}

.recent-jackpots-404 h3 {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 30px;
}

/* Footer Menu */
.footer-navigation {
    text-align: center;
    margin-bottom: 20px;
}

.footer-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-menu li a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Animation Styles
   ========================================================================== */

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

.jackpot-card {
    animation: fadeIn 0.3s ease forwards;
}

.jackpot-grid .jackpot-card:nth-child(1) { animation-delay: 0.05s; }
.jackpot-grid .jackpot-card:nth-child(2) { animation-delay: 0.1s; }
.jackpot-grid .jackpot-card:nth-child(3) { animation-delay: 0.15s; }
.jackpot-grid .jackpot-card:nth-child(4) { animation-delay: 0.2s; }
.jackpot-grid .jackpot-card:nth-child(5) { animation-delay: 0.25s; }
.jackpot-grid .jackpot-card:nth-child(6) { animation-delay: 0.3s; }

/* Touch hover for mobile */
.jackpot-card.touch-hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

/* ==========================================================================
   Admin Bar Fix
   ========================================================================== */

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ==========================================================================
   Print Enhancements
   ========================================================================== */

@media print {
    .jackpot-card-image .game-badge {
        background: #333 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .single-jackpot-content {
        border: 1px solid #ddd !important;
    }
    
    .jackpot-detail-item {
        border: 1px solid #ddd !important;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --border-color: #666;
        --text-muted: #aaa;
    }
    
    .jackpot-card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .running-text-inner {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Dark Mode Enhancements
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Already dark theme, but ensure consistency */
    img {
        filter: brightness(0.95);
    }
}
