/*
Theme Name: E-Books Australia Child
Description: Professional literary platform child theme for GeneratePress
Author: E-Books Australia
Template: generatepress
Version: 1.0.0
Text Domain: ebooks-australia-child
*/

/* Import GeneratePress parent styles */
@import url("../generatepress/style.css");

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #d69e2e;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --background-light: #f7fafc;
    --border-light: #e2e8f0;
    --white: #ffffff;
    --success: #38a169;
}

/* Base Overrides */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.serif {
    font-family: 'Crimson Text', serif;
}

/* Hide default GeneratePress elements */
.site-header {
    display: none;
}

.site-content {
    padding: 0;
}

/* Custom Header */
.eba-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.eba-header-top {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.eba-header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eba-contact-info {
    display: flex;
    gap: 20px;
}

.eba-social-links {
    display: flex;
    gap: 15px;
}

.eba-social-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.eba-social-links a:hover {
    opacity: 1;
}

.eba-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eba-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.eba-logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.eba-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 24px;
}

.eba-logo-text {
    display: flex;
    flex-direction: column;
}

.eba-logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.eba-logo-subtitle {
    font-size: 13px;
    color: var(--text-medium);
    font-weight: 400;
}

.eba-main-nav {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.eba-main-nav li {
    position: relative;
}

.eba-main-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.eba-main-nav a:hover,
.eba-main-nav a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--accent-color);
}

.eba-cta-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.eba-search-box {
    position: relative;
}

.eba-search-box input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    width: 250px;
    font-size: 14px;
}

.eba-search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
}

.eba-btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.eba-btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    color: var(--white);
}

/* Hero Section */
.eba-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.eba-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.05"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat bottom;
    background-size: cover;
}

.eba-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.eba-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eba-hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    font-family: 'Crimson Text', serif;
}

.eba-hero-subtitle {
    font-size: 20px;
    margin-bottom: 15px;
    opacity: 0.9;
    font-style: italic;
}

.eba-hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.85;
}

.eba-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.eba-stat-item {
    text-align: center;
}

.eba-stat-number {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.eba-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.eba-hero-image {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.eba-hero-image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    border: 2px dashed rgba(255,255,255,0.3);
    flex-direction: column;
}

/* Features Section */
.eba-features {
    padding: 100px 0;
    background: var(--background-light);
}

.eba-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.eba-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.eba-section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Crimson Text', serif;
}

.eba-section-description {
    font-size: 18px;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.eba-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.eba-feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

.eba-feature-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.eba-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin-bottom: 25px;
}

.eba-feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.eba-feature-description {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 20px;
}

.eba-feature-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eba-feature-link:hover {
    color: var(--primary-color);
}

/* Newsletter Section */
.eba-newsletter {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
}

.eba-newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eba-newsletter-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Crimson Text', serif;
}

.eba-newsletter-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.eba-newsletter-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.eba-newsletter-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eba-newsletter-features li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
}

.eba-newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.eba-form-group {
    margin-bottom: 20px;
}

.eba-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.eba-form-group input,
.eba-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 16px;
}

.eba-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.eba-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.eba-btn-newsletter {
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.eba-btn-newsletter:hover {
    background: #f6e05e;
    transform: translateY(-2px);
}

/* Blog Posts */
.eba-recent-activity {
    padding: 100px 0;
}

.eba-activity-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.eba-recent-posts {
    display: grid;
    gap: 30px;
}

.eba-post-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.eba-post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.eba-post-image {
    height: 200px;
    background: linear-gradient(45deg, var(--background-light), var(--border-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.eba-post-content {
    padding: 25px;
}

.eba-post-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.eba-post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.eba-post-title a {
    color: inherit;
    text-decoration: none;
}

.eba-post-title a:hover {
    color: var(--secondary-color);
}

.eba-post-excerpt {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 15px;
}

.eba-read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.eba-read-more:hover {
    color: var(--primary-color);
}

.eba-sidebar {
    display: grid;
    gap: 40px;
}

.eba-sidebar-section {
    background: var(--background-light);
    padding: 30px;
    border-radius: 12px;
}

.eba-sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.eba-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eba-sidebar-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.eba-sidebar-list li:last-child {
    border-bottom: none;
}

.eba-sidebar-list a {
    color: var(--text-medium);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eba-sidebar-list a:hover {
    color: var(--secondary-color);
}

.eba-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Custom Footer */
.eba-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.eba-footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.eba-footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.eba-footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.eba-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.eba-footer-links li {
    margin-bottom: 10px;
}

.eba-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.eba-footer-links a:hover {
    color: var(--accent-color);
}

.eba-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eba-footer-bottom p {
    opacity: 0.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eba-main-nav {
        display: none;
    }
    
    .eba-hero-grid,
    .eba-newsletter-content,
    .eba-activity-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .eba-hero-text h1 {
        font-size: 36px;
    }
    
    .eba-features-grid {
        grid-template-columns: 1fr;
    }
    
    .eba-hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .eba-search-box input {
        width: 200px;
    }
    
    .eba-footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .eba-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .eba-navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .eba-cta-nav {
        flex-direction: column;
        gap: 15px;
    }
}

/* WordPress Specific Overrides */
.site-footer {
    display: none;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-family: 'Crimson Text', serif;
    color: var(--primary-color);
}

.entry-meta {
    color: var(--text-light);
    font-size: 14px;
}

.entry-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--primary-color);
    font-family: 'Crimson Text', serif;
}

.widget-title {
    color: var(--primary-color);
    font-family: 'Crimson Text', serif;
}

/* Navigation Overrides */
.main-navigation {
    display: none;
}