/*
Theme Name: ExamHub Theme
Description: A modern, responsive WordPress theme designed specifically for ExamHub.pk - Pakistan's premier online exam preparation platform. Features include MCQ practice, mock tests, user dashboards, subscription management, and comprehensive analytics.
Author: ExamHub Team
Author URI: https://examhub.pk
Version: 1.0.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: examhub
Tags: education, exam-preparation, mcq, mock-tests, dashboard, e-learning, responsive, modern

This theme is designed to work with the ExamHub.pk Core plugin for optimal functionality.
*/

/**
 * ExamHub Theme - Consolidated Main Stylesheet
 * 
 * File Size: ~400 lines (reduced from 2272 lines!)
 * 
 * This file contains ONLY theme-specific styles:
 * - Brand colors and gradients
 * - Theme-specific layouts
 * - Header/footer styling
 * - Color schemes
 * 
 * Foundation styles (reset, typography, accessibility) are in foundation.css
 * UI components (buttons, modals, cards) are in separate CSS files
 */

/* ============================================
   THEME COLORS AND VARIABLES
   ============================================ */

:root {
    /* Primary Brand Colors */
    --color-primary: #007cba;
    --color-primary-dark: #005a87;
    --color-secondary: #6c757d;
    
    /* Background Colors */
    --bg-primary: #f8f9fa;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #888;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-premium: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Spacing */
    --container-max-width: 1200px;
    --header-height: 70px;
}

/* ============================================
   THEME-SPECIFIC BASE STYLES
   ============================================ */

body {
    background-color: var(--bg-primary);
}

a {
    color: var(--color-primary);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ============================================
   SITE LAYOUT
   ============================================ */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Full width pages */
.archive-mcq .content-area,
.page-template-page-practice-test .content-area,
.page-template-page-practice-by-topic .content-area {
    max-width: none;
    width: 100%;
}

.site-main {
    width: 100%;
    padding: 2rem 0;
}

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

.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    min-height: var(--header-height);
}

.site-branding {
    display: flex;
    align-items: center;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.custom-logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a {
    transition: all 0.3s ease;
}

.site-title a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.site-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   NAVIGATION THEME STYLES
   ============================================ */

.primary-menu a {
    color: #333;
}

.primary-menu a:hover,
.primary-menu a:focus {
    color: var(--color-primary);
}

/* MCQ Quick Access Theming */
.mcq-dropdown-toggle {
    background: var(--color-primary);
    color: white;
}

.mcq-dropdown-toggle:hover {
    background: var(--color-primary-dark);
}

/* User Menu Theming */
.user-avatar {
    background: var(--color-primary);
    color: white;
}

.subscription-badge.premium {
    background: var(--gradient-premium);
    color: white;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

/* Search Theming */
.search-submit {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.search-submit:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.suggestion-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Archive Headers */
.archive-header {
    background: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #e1e5e9;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.archive-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   CARD THEMING
   ============================================ */

.card {
    background: var(--bg-white);
    border: 1px solid #e1e5e9;
}

.card:hover {
    border-color: var(--color-primary);
}

/* MCQ Cards */
.mcq-card.premium-locked {
    border-color: #f093fb;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%);
}

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

.site-footer {
    background: #1a1a1a;
    color: #e1e5e9;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-widget a {
    color: #e1e5e9;
    transition: color 0.2s ease;
}

.footer-widget a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: #e1e5e9;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   SIDEBAR THEMING
   ============================================ */

.sidebar {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
    color: var(--text-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs-container {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid #e1e5e9;
}

.breadcrumb a {
    color: var(--color-primary);
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
}

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

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 1rem 0;
    }
    
    .archive-header {
        padding: 2rem 0;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   THEME-SPECIFIC ANIMATIONS
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .site-header,
    .site-footer,
    .sidebar {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */

@media (prefers-contrast: high) {
    :root {
        --color-primary: #000080;
        --color-primary-dark: #000060;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
    
    .card {
        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;
    }
}
