/*
Theme Name: Eternal Blogger
Theme URI: https://eternalblogger.ai
Author: Eternal Blogger
Author URI: https://eternalblogger.ai
Description: Dark premium theme for Eternal Auto Blogger - Autonomous AI Content Generation Platform
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eternal-blogger
Tags: dark, one-column, custom-menu, featured-images, theme-options
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --eb-bg: #030303;
    --eb-bg-alt: #0a0a0a;
    --eb-card: #111111;
    --eb-card-hover: #161616;
    --eb-border: #1a1a1a;
    --eb-border-light: #2a2a2a;
    --eb-text: #ffffff;
    --eb-text-secondary: #cccccc;
    --eb-text-muted: #888888;
    --eb-text-dim: #555555;
    --eb-primary: #00ff88;
    --eb-primary-dark: #00cc6a;
    --eb-secondary: #00d4ff;
    --eb-accent: #7c3aed;
    --eb-gradient: linear-gradient(135deg, #00ff88 0%, #00d4ff 50%, #7c3aed 100%);
    --eb-gradient-text: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
    --eb-success: #00ff88;
    --eb-warning: #ffaa00;
    --eb-error: #ff4444;
    --eb-radius: 12px;
    --eb-radius-lg: 20px;
    --eb-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --eb-shadow-glow: 0 0 40px rgba(0, 255, 136, 0.15);
    --eb-font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --eb-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--eb-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--eb-text);
    background-color: var(--eb-bg);
    min-height: 100vh;
}

a {
    color: var(--eb-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--eb-secondary);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

ul, ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

blockquote {
    border-left: 4px solid var(--eb-primary);
    padding-left: 20px;
    margin: 1.5em 0;
    color: var(--eb-text-secondary);
    font-style: italic;
}

code {
    font-family: var(--eb-font-mono);
    background: var(--eb-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 20px;
    overflow-x: auto;
    margin-bottom: 1.5em;
}

pre code {
    background: none;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--eb-border);
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--eb-border);
}

th {
    background: var(--eb-card);
    font-weight: 600;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--eb-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--eb-text);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--eb-text);
}

.logo-icon {
    font-size: 28px;
    background: var(--eb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-highlight {
    color: var(--eb-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-menu a {
    color: var(--eb-text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--eb-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--eb-text);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 3, 3, 0.98);
    border-bottom: 1px solid var(--eb-border);
    padding: 20px 24px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    color: var(--eb-text-muted);
    border-bottom: 1px solid var(--eb-border);
}

.mobile-menu a:hover {
    color: var(--eb-text);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--eb-gradient);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
    color: #000;
}

.btn-secondary {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    color: var(--eb-text);
}

.btn-secondary:hover {
    border-color: var(--eb-primary);
    color: var(--eb-text);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--eb-border);
    color: var(--eb-text);
}

.btn-ghost:hover {
    border-color: var(--eb-primary);
    color: var(--eb-text);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-description {
    font-size: 1.25rem;
    color: var(--eb-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Gradient Text */
.gradient-text {
    background: var(--eb-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   BLOG / POSTS
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: var(--eb-border-light);
    box-shadow: var(--eb-shadow);
}

.post-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--eb-bg-alt);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--eb-text-muted);
}

.post-card-category {
    color: var(--eb-primary);
    font-weight: 600;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-card-title a {
    color: var(--eb-text);
}

.post-card-title a:hover {
    color: var(--eb-primary);
}

.post-card-excerpt {
    color: var(--eb-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--eb-border);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--eb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #000;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--eb-primary);
}

/* Featured Post */
.featured-post {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.featured-post .post-card-image {
    aspect-ratio: auto;
    min-height: 400px;
}

.featured-post .post-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.featured-post .post-card-title {
    font-size: 2rem;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--eb-text-muted);
}

.single-post-title {
    font-size: 3rem;
    margin-bottom: 24px;
}

.single-post-excerpt {
    font-size: 1.25rem;
    color: var(--eb-text-secondary);
}

.single-post-featured-image {
    margin-bottom: 48px;
    border-radius: var(--eb-radius-lg);
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--eb-text-secondary);
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--eb-text);
    margin-top: 2em;
}

.post-content a {
    color: var(--eb-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content img {
    border-radius: var(--eb-radius);
    margin: 2em 0;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--eb-border);
}

.post-nav-item {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 24px;
    transition: border-color 0.2s;
}

.post-nav-item:hover {
    border-color: var(--eb-primary);
}

.post-nav-label {
    font-size: 12px;
    color: var(--eb-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.post-nav-title {
    font-size: 1.1rem;
    color: var(--eb-text);
}

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    padding: 32px;
    margin-top: 60px;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--eb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-content h4 {
    margin-bottom: 8px;
}

.author-box-content p {
    color: var(--eb-text-muted);
    margin: 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--eb-border);
}

.widget ul {
    list-style: none;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--eb-border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--eb-text-muted);
}

.widget a:hover {
    color: var(--eb-primary);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--eb-text);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--eb-bg);
    border: 1px solid var(--eb-border);
    border-radius: 8px;
    color: var(--eb-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--eb-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--eb-text-dim);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--eb-primary);
}

.form-hint {
    font-size: 13px;
    color: var(--eb-text-muted);
    margin-top: 6px;
}

.form-error {
    color: var(--eb-error);
    font-size: 13px;
    margin-top: 6px;
}

/* ============================================
   AUTH PAGES (Login, Register)
   ============================================ */
.auth-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--eb-text-muted);
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--eb-border);
    color: var(--eb-text-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--eb-text-muted);
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--eb-border);
}

/* ============================================
   ACCOUNT / DASHBOARD
   ============================================ */
.account-page {
    padding: 60px 0;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.account-header h1 {
    margin: 0;
}

.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.account-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.account-nav {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    overflow: hidden;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--eb-text-muted);
    border-bottom: 1px solid var(--eb-border);
    transition: all 0.2s;
}

.account-nav a:last-child {
    border-bottom: none;
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--eb-bg-alt);
    color: var(--eb-text);
}

.account-nav a.active {
    border-left: 3px solid var(--eb-primary);
}

.account-content {
    min-height: 400px;
}

.account-section {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.account-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eb-border);
}

.account-section-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--eb-bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--eb-text-muted);
    margin-top: 4px;
}

/* License Cards */
.license-card {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 24px;
    margin-bottom: 16px;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.license-plan {
    font-size: 1.25rem;
    font-weight: 600;
}

.license-status {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.license-status.active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--eb-primary);
}

.license-status.expired {
    background: rgba(255, 170, 0, 0.15);
    color: var(--eb-warning);
}

.license-status.cancelled {
    background: rgba(255, 68, 68, 0.15);
    color: var(--eb-error);
}

.license-key {
    background: var(--eb-bg);
    border: 1px solid var(--eb-border);
    border-radius: 8px;
    padding: 14px 18px;
    font-family: var(--eb-font-mono);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.license-key code {
    background: none;
    padding: 0;
}

.copy-btn {
    background: var(--eb-border);
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--eb-text-muted);
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--eb-border-light);
    color: var(--eb-text);
}

.license-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--eb-border);
}

.license-meta-item label {
    display: block;
    font-size: 12px;
    color: var(--eb-text-muted);
    margin-bottom: 4px;
}

.license-meta-item span {
    font-weight: 600;
}

/* Download Card */
.download-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--eb-primary);
    border-radius: var(--eb-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.download-icon {
    font-size: 48px;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    margin-bottom: 4px;
}

.download-info p {
    color: var(--eb-text-muted);
    margin: 0;
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-section {
    padding: 80px 0;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.toggle-label {
    font-size: 15px;
    color: var(--eb-text-muted);
    cursor: pointer;
}

.toggle-label.active {
    color: var(--eb-text);
}

.toggle-save {
    background: rgba(0, 255, 136, 0.1);
    color: var(--eb-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: var(--eb-radius-lg);
    padding: 40px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--eb-primary);
    box-shadow: var(--eb-shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--eb-gradient);
    color: #000;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-header p {
    color: var(--eb-text-muted);
}

.pricing-price {
    margin: 24px 0;
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--eb-text-muted);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--eb-text-muted);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    margin: 0 0 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--eb-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--eb-primary);
    font-size: 18px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--eb-bg-alt);
    border-top: 1px solid var(--eb-border);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--eb-text-muted);
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--eb-text-muted);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--eb-text);
    padding: 8px 0;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--eb-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--eb-border);
}

.footer-bottom p {
    color: var(--eb-text-muted);
    font-size: 14px;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eb-text-muted);
    transition: all 0.2s;
}

.footer-social a:hover {
    border-color: var(--eb-primary);
    color: var(--eb-primary);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    background: var(--eb-card);
    border: 1px solid var(--eb-border);
    border-radius: 8px;
    color: var(--eb-text-muted);
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: var(--eb-primary);
    color: var(--eb-text);
}

.pagination .current {
    background: var(--eb-primary);
    border-color: var(--eb-primary);
    color: #000;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--eb-border);
}

.comments-title {
    margin-bottom: 32px;
}

.comment-list {
    list-style: none;
    margin: 0;
}

.comment {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--eb-border);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--eb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    margin-right: 12px;
}

.comment-date {
    color: var(--eb-text-muted);
    font-size: 13px;
}

.comment-text {
    color: var(--eb-text-secondary);
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    display: inline-block;
}

/* Comment Form */
.comment-form {
    margin-top: 40px;
}

.comment-form h3 {
    margin-bottom: 24px;
}

/* ============================================
   SEARCH
   ============================================ */
.search-form {
    display: flex;
    gap: 12px;
}

.search-form input {
    flex: 1;
}

.search-results-info {
    margin-bottom: 40px;
    padding: 20px;
    background: var(--eb-card);
    border-radius: var(--eb-radius);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 100px 24px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--eb-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 24px;
}

.error-404 h1 {
    margin-bottom: 16px;
}

.error-404 p {
    color: var(--eb-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--eb-radius);
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--eb-primary);
    color: var(--eb-primary);
}

.alert-error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--eb-error);
    color: var(--eb-error);
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--eb-warning);
    color: var(--eb-warning);
}

.alert-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--eb-secondary);
    color: var(--eb-secondary);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--eb-text-muted); }
.text-primary { color: var(--eb-primary); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none !important; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-post {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-card-image {
        min-height: 300px;
    }
    
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
    
    .account-nav {
        display: flex;
        overflow-x: auto;
    }
    
    .account-nav a {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--eb-border);
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-post {
        grid-column: span 1;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        order: -1;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .license-meta {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .container {
        padding: 0 16px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .pricing-card {
        padding: 24px;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image {
    margin: 2em 0;
}

.wp-block-image img {
    border-radius: var(--eb-radius);
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Gallery */
.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wp-block-gallery img {
    border-radius: var(--eb-radius);
}

/* Embeds */
.wp-block-embed {
    margin: 2em 0;
}

.wp-block-embed iframe {
    max-width: 100%;
    border-radius: var(--eb-radius);
}
