/* ===== FONT FACES ===== */
@font-face {
    font-family: 'Mellat';
    src: url('../fonts/mellat.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Iran';
    src: url('../fonts/iran.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zain';
    src: url('../fonts/zain/Zain-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zain';
    src: url('../fonts/zain/Zain-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zain';
    src: url('../fonts/zain/Zain-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zain';
    src: url('../fonts/zain/Zain-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zain';
    src: url('../fonts/zain/Zain-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Zain';
    src: url('../fonts/zain/Zain-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

a:link, a:visited, a:hover, a:active {
    text-decoration: none;
}

:root {
    /* Persian Lapis Lazuli Colors */
    --lapis-primary: #26619c;
    --lapis-light: #4a8bc9;
    --lapis-dark: #1a4a7a;
    --lapis-darker: #0f355c;
    --lapis-neon: #5dade2;
    --lapis-glow: rgba(74, 139, 201, 0.6);

    /* Persian Gold Accents */
    --gold-primary: #d4af37;
    --gold-light: #f7ef8a;
    --gold-glow: rgba(212, 175, 55, 0.4);

    /* Base Colors - Dark Theme */
    --primary-color: #0a1929;
    --secondary-color: #102a44;
    --text-color: #e8f4ff;
    --text-muted: #a8c6e0;
    --text-light: #c4d8eb;
    --border-color: rgba(74, 139, 201, 0.3);
    --hover-color: #5dade2;
    --success: #10b981;
    --error: #ef4444;

    /* Lapis Neon Effects */
    --shadow: 0 4px 20px rgba(74, 139, 201, 0.3);
    --shadow-lg: 0 8px 30px rgba(74, 139, 201, 0.5);
    --glow: 0 0 15px rgba(74, 139, 201, 0.7);
    --glow-strong: 0 0 25px rgba(93, 173, 226, 0.8);
    --gradient-accent: linear-gradient(135deg, #26619c, #4a8bc9, #1a4a7a);
    --gradient-primary: linear-gradient(135deg, #102a44, #0a1929);
    --gradient-lapis: linear-gradient(135deg, #26619c, #5dade2, #1a4a7a);
    --gradient-gold: linear-gradient(135deg, #d4af37, #f7ef8a, #b8860b);

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
}

[data-theme="light"] {
    /* Light Theme Colors */
    --primary-color: #f0f8ff;
    --secondary-color: #e6f2ff;
    --text-color: #1a3c5f;
    --text-muted: #4a6b8a;
    --text-light: #2d4d6e;
    --border-color: rgba(74, 139, 201, 0.4);
    --hover-color: #1a4a7a;
    --shadow: 0 4px 20px rgba(74, 139, 201, 0.2);
    --shadow-lg: 0 8px 30px rgba(74, 139, 201, 0.3);
    --glow: 0 0 10px rgba(74, 139, 201, 0.4);
    --gradient-primary: linear-gradient(135deg, #e6f2ff, #f0f8ff);
}

/* ===== FONT APPLICATIONS ===== */
body {
    font-family: 'Zain', 'Iran', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-color);
    color: var(--text-color);
    line-height: 1.7;
    direction: rtl;
    transition: all 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 25%, rgba(74, 139, 201, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(74, 139, 201, 0.1) 0%, transparent 40%),
                repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(74, 139, 201, 0.03) 10px, rgba(74, 139, 201, 0.03) 20px);
    pointer-events: none;
    z-index: -1;
}

/* فقط برای لوگو از Mellat استفاده شود */
.logo,
.header-brand .logo,
.footer-brand .logo {
    font-family: 'Mellat', 'Zain', 'Iran', sans-serif !important;
}

/* بقیه عناوین از Zain استفاده کنند */
.heading h1,
.post-title,
.footer-nav h4,
.footer-social h4,
.avatar-name,
.single-title,
.page-title,
.comments-title {
    font-family: 'Zain', 'Iran', sans-serif !important;
}

/* برای منوها و ناوبری */
.main-menu a,
.mobile-menu a,
.footer-nav a,
.breadcrumb-content,
.post-meta,
.post-excerpt,
.copyright,
.comment-list,
.comment-form {
    font-family: 'Zain', 'Iran', sans-serif;
}

/* ===== SVG ICONS SYSTEM ===== */
.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

/* Sizes */
.svg-icon--xs { 
    font-size: 12px; 
    width: 12px; 
    height: 12px; 
}
.svg-icon--sm { 
    font-size: 16px; 
    width: 16px; 
    height: 16px; 
}
.svg-icon--md { 
    font-size: 24px; 
    width: 24px; 
    height: 24px; 
}
.svg-icon--lg { 
    font-size: 32px; 
    width: 32px; 
    height: 32px; 
}
.svg-icon--xl { 
    font-size: 48px; 
    width: 48px; 
    height: 48px; 
}

/* Social Media Colors */
.social-links .svg-icon,
.footer-social-icons .svg-icon,
.social-icons .svg-icon {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links .svg-icon:hover,
.footer-social-icons .svg-icon:hover,
.social-icons .svg-icon:hover {
    transform: translateY(-2px);
}

.social-links a[href*="facebook.com"] .svg-icon:hover,
.footer-social-icons a[href*="facebook.com"] .svg-icon:hover { color: #1877f2; }
.social-links a[href*="instagram.com"] .svg-icon:hover,
.footer-social-icons a[href*="instagram.com"] .svg-icon:hover { color: #e4405f; }
.social-links a[href*="t.me"] .svg-icon:hover,
.footer-social-icons a[href*="t.me"] .svg-icon:hover { color: #0088cc; }
.social-links a[href*="whatsapp.com"] .svg-icon:hover,
.footer-social-icons a[href*="whatsapp.com"] .svg-icon:hover { color: #25d366; }
.social-links a[href*="linkedin.com"] .svg-icon:hover,
.footer-social-icons a[href*="linkedin.com"] .svg-icon:hover { color: #0a66c2; }
.social-links a[href*="tiktok.com"] .svg-icon:hover,
.footer-social-icons a[href*="tiktok.com"] .svg-icon:hover { color: #000000; }
.social-links a[href*="youtube.com"] .svg-icon:hover,
.footer-social-icons a[href*="youtube.com"] .svg-icon:hover { color: #ff0000; }

/* Menu Icons */
.submenu-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-right: 5px;
    color: var(--text-color);
}

.submenu-toggle.active {
    transform: rotate(180deg);
}

/* Theme Toggle Icon */
.theme-toggle .svg-icon {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.theme-toggle:hover .svg-icon {
    transform: rotate(180deg) scale(1.1);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER ===== */
.header {
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 100;
    transition: background 0.3s ease;
    box-shadow: var(--shadow);
}

[data-theme="light"] .header {
    background: rgba(240, 248, 255, 0.9);
}

.header-container {
    display: grid;
    grid-template-areas: "menu brand" "slogan slogan";
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: start;
}

.main-navigation {
    grid-area: menu;
}

.menu-toggle {
    background: transparent;
    border: 2px solid var(--lapis-primary);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 700;
    font-size: var(--text-sm);
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 139, 201, 0.3), transparent);
    transition: left 0.6s;
}

.menu-toggle:hover {
    background: var(--gradient-lapis);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.menu-toggle:hover::before {
    left: 100%;
}

.main-menu {
    display: none;
    list-style: none;
}

.main-menu li {
    display: inline-block;
}

.header-brand {
    grid-area: brand;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 900;
    background: var(--gradient-lapis);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lapisPulse 2s infinite;
    text-shadow: 0 0 10px var(--lapis-glow);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold-glow);
}

@keyframes lapisPulse {
    0% { text-shadow: 0 0 10px rgba(74, 139, 201, 0.5); }
    50% { text-shadow: 0 0 20px rgba(93, 173, 226, 0.8), 0 0 5px rgba(212, 175, 55, 0.3); }
    100% { text-shadow: 0 0 10px rgba(74, 139, 201, 0.5); }
}

.header-slogan {
    grid-area: slogan;
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 300;
    text-align: center;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-container {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(10, 25, 41, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
    box-shadow: var(--shadow);
}

[data-theme="light"] .breadcrumb-container {
    background: rgba(240, 248, 255, 0.9);
}

.custom-breadcrumb {
    background: var(--secondary-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: grid;
    grid-template-areas: "breadcrumb theme";
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.custom-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 139, 201, 0.1), transparent);
    animation: lapisGlow 3s infinite;
    z-index: -1;
}

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

.breadcrumb-content {
    grid-area: breadcrumb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: var(--text-xs);
}

.breadcrumb-content a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.breadcrumb-content a:hover {
    color: var(--lapis-primary);
    transform: translateX(-5px);
    text-shadow: 0 0 8px var(--lapis-glow);
}

.separator {
    color: var(--text-muted);
    font-size: var(--text-xs);
    animation: lapisPulse 2s infinite;
}

.theme-toggle {
    grid-area: theme;
    background: var(--secondary-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border: 2px solid var(--lapis-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--glow);
}

.theme-toggle:hover {
    background: var(--gradient-lapis);
    color: var(--secondary-color);
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--glow-strong);
}

/* ===== MOBILE MENU ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 25, 41, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    border-left: 1px solid rgba(74, 139, 201, 0.2);
}

[data-theme="light"] .menu-overlay {
    background: rgba(240, 248, 255, 0.25);
}

.menu-overlay.active {
    right: 0;
}

body.menu-open {
    overflow: hidden;
}

.menu-overlay-content {
    display: grid;
    grid-template-rows: auto auto auto 1px 1fr auto;
    grid-template-areas: "avatar" "name" "social" "line" "menu" "close";
    justify-items: center;
    padding: 2rem 1rem;
    min-height: 100vh;
    gap: 1rem;
    animation: lapisSlideIn 0.6s ease;
}

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

.menu-avatar {
    grid-area: avatar;
    margin-top: 1em;
    animation: lapisFadeInDown 0.8s ease forwards;
}

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

.avatar-box {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--lapis-primary);
    box-shadow: 0 0 20px var(--lapis-glow), 0 0 10px var(--gold-glow);
    margin: 0 auto 0.5rem;
    position: relative;
    animation: none;
}

.avatar-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--gradient-gold);
    z-index: -1;
    opacity: 0.3;
    animation: goldPulse 3s infinite alternate;
}

@keyframes goldPulse {
    0% { opacity: 0.2; }
    100% { opacity: 0.4; }
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-avatar .slogan {
    text-align: center;
}

.avatar-name {
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    background: var(--gradient-lapis);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lapisTitleGlow 3s infinite alternate;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@keyframes lapisTitleGlow {
    from { text-shadow: 0 0 20px rgba(74, 139, 201, 0.4), 0 0 5px rgba(212, 175, 55, 0.2); }
    to { text-shadow: 0 0 30px rgba(93, 173, 226, 0.8), 0 0 10px rgba(212, 175, 55, 0.4); }
}

.menu-avatar .slogan p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.social-icons {
    grid-area: social;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 1rem 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    transition: all 0.3s ease;
    text-decoration: none;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-color: var(--lapis-primary);
}

.menu-separator {
    grid-area: line;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: 1rem 0;
    border-radius: 2px;
}

.mobile-navigation {
    grid-area: menu;
    width: 100%;
}

.mobile-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    list-style: none;
    padding: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem;
    text-align: right;
    color: var(--text-color);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    border-radius: 8px;
    background: rgba(74, 139, 201, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(74, 139, 201, 0.1);
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 139, 201, 0.2), transparent);
    transition: left 0.5s;
}

.mobile-menu a:hover {
    background: rgba(74, 139, 201, 0.15);
    color: var(--lapis-primary);
    transform: translateX(15px);
    border-color: var(--lapis-primary);
    box-shadow: 0 0 10px var(--lapis-glow);
}

.mobile-menu a:hover::before {
    left: 100%;
}

.close-btn {
    grid-area: close;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: var(--text-3xl);
    cursor: pointer;
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: none;
    padding: 0.5rem;
}

.close-btn:hover {
    background: transparent;
    color: #dc2626;
    transform: scale(1.2);
    box-shadow: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 2rem 0;
}

.heading {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold-glow);
}

.heading h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-lapis);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: lapisTitleGlow 3s infinite alternate;
}

.post-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.post-card {
    background: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(74, 139, 201, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.post-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-lg);
    border-color: var(--lapis-primary);
}

.post-card:hover::before {
    opacity: 1;
}

.post-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.post-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.post-card:hover .post-thumb-img {
    transform: scale(1.15) rotate(3deg);
}

.post-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.post-title {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.post-title a:hover {
    color: var(--lapis-primary);
    text-shadow: 0 0 10px var(--lapis-glow);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.excerpt-paragraph {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-lapis);
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 10;
    pointer-events: auto;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.read-more:hover {
    transform: translateX(-8px) scale(1.05);
    box-shadow: var(--glow-strong);
}

.read-more:hover::before {
    left: 100%;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.page-numbers::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 139, 201, 0.2), transparent);
    transition: left 0.5s;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--gradient-lapis);
    color: var(--secondary-color);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--glow-strong);
}

.page-numbers.current::before,
.page-numbers:hover::before {
    left: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-top: 3px solid var(--lapis-primary);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(74, 139, 201, 0.2);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 35%, rgba(74, 139, 201, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 65%, rgba(74, 139, 201, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-brand .logo {
    font-size: var(--text-3xl);
    margin-bottom: 0.5rem;
}

.footer-brand .slogan {
    color: var(--lapis-primary);
    font-weight: 600;
    text-shadow: 0 0 10px var(--lapis-glow);
}

/* ===== FOOTER NAVIGATION - TWO COLUMNS FIX ===== */
.footer-nav {
    margin-top: 1.5rem;
    text-align: right;
    width: 100%;
}

.footer-nav h4 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.footer-nav h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold-glow);
}

.footer-menu-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    justify-items: start;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents;
}

.footer-menu li {
    margin-bottom: 1rem;
    break-inside: avoid;
}

.footer-menu a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    padding: 0.5rem 0;
}

.footer-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-lapis);
    transition: width 0.4s ease;
}

.footer-menu a:hover {
    color: var(--lapis-primary);
    transform: translateX(-8px);
    text-shadow: 0 0 8px var(--lapis-glow);
}

.footer-menu a:hover::before {
    width: 100%;
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
    margin-top: 2rem;
    width: 100%;
}

.footer-social h4 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold-glow);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: all 0.3s ease;
    text-decoration: none;
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.footer-social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border-color: var(--lapis-primary);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: var(--text-sm);
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.theme-credit {
    margin-top: 0.5rem;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--gradient-lapis);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    box-shadow: var(--glow-strong);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-8px) rotate(15deg) scale(1.1);
    box-shadow: 0 0 25px rgba(93, 173, 226, 0.9);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .header-container {
        grid-template-areas: "brand menu" "slogan slogan";
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    
    .header-brand {
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .main-menu {
        display: block;
    }
    
    .main-menu li {
        margin-left: 1.5rem;
    }
    
    .main-menu a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        padding: 0.5rem 0;
        position: relative;
    }
    
    .main-menu a::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-lapis);
        transition: width 0.3s ease;
    }
    
    .main-menu a:hover::after {
        width: 100%;
    }
    
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
        align-items: start;
        text-align: right;
    }
    
    .footer-nav,
    .footer-social {
        margin-top: 0;
        text-align: right;
    }
    
    .footer-nav h4,
    .footer-social h4 {
        text-align: right;
    }
    
    .footer-nav h4::after,
    .footer-social h4::after {
        right: 0;
        transform: translateX(0);
    }
    
    .footer-menu-columns {
        justify-items: end;
    }
    
    .mobile-menu {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-container {
        grid-template-areas: "brand slogan menu";
        grid-template-columns: auto 1fr auto;
    }
    
    .header-slogan {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .footer-menu-columns {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-nav,
    .footer-social {
        width: 100%;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .svg-icon {
        transition: none;
    }
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}