/* 
  AuthorKaylaSwift.com - Main Stylesheet
  Theme: LitRPG, Gaming, Bright, High-Energy
*/

:root {
    --bg-light: #F8F9FA;
    --bg-alt: #EEF1F5;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1025;
    
    --color-primary: #00E676; /* Bright Gamer Green */
    --color-primary-light: #69F0AE;
    --color-coral: #FF5757;
    --color-green: #10B981;
    
    --color-text: #1A1A2E;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;

    --font-display: 'Rajdhani', 'Orbitron', 'Arial', sans-serif;
    --font-body: 'Inter', 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --max-width: 1100px;
    --nav-height: 70px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-light);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* Typography */
.text-yellow {
    color: #FFD700 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 600; }

p {
    margin-bottom: 1.2rem;
}

/* Layout Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--bg-light);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--bg-white);
}

.section-alt {
    background-color: var(--bg-alt);
}

.grid {
    display: grid;
    gap: 2rem;
}

/* LitRPG Design Elements inspired by interior */
.drop-cap:first-letter {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-primary);
    float: left;
    line-height: 1;
    padding-right: 0.5rem;
    margin-top: -0.2rem;
    text-shadow: 2px 2px 0px rgba(0, 230, 118, 0.3);
}

.ornamental-break {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: 1rem;
    margin: 3rem 0;
    opacity: 0.8;
}

.system-box {
    border: 2px dashed var(--color-border);
    padding: 2rem;
    background-color: var(--bg-white);
    position: relative;
    border-radius: 4px;
    margin: 2rem 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.system-box-title {
    font-family: var(--font-mono);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--color-text);
    position: absolute;
    top: -12px;
    left: 1rem;
    background: var(--bg-white);
    padding: 0 0.5rem;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.system-box-content {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Header & Nav */
header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    font-family: var(--font-display);
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.05);
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--color-text);
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--bg-white);
}

.btn-outline-light {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--color-dark);
}

.btn-accent {
    background: var(--color-coral);
    color: var(--bg-white);
}

.btn-accent:hover {
    background: #ff7070;
    color: var(--bg-white);
    box-shadow: 0 0 15px rgba(255, 87, 87, 0.4);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 16, 37, 0.70), rgba(26, 16, 37, 0.85)), url('/images/covers/level-zero-nanny.jpg');
    background-size: cover;
    background-position: center;
    color: var(--bg-light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(108, 60, 224, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 60, 224, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--bg-white);
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.6), 0 0 30px rgba(0, 230, 118, 0.3);
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--color-primary-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-btns { flex-direction: column; }
}

/* Series Showcase */
.series-showcase {
    background: var(--bg-light);
    padding: 4rem 0;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.covers-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.book-card-mini {
    text-align: center;
    width: 180px;
    transition: transform 0.3s ease;
}

.book-card-mini:hover {
    transform: translateY(-10px);
}

.cover-img-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.book-card-mini:hover .cover-img-wrapper {
    box-shadow: 0 10px 25px rgba(108, 60, 224, 0.3);
}

.cover-img-wrapper img {
    border-radius: 4px;
    display: block;
    width: 100%;
}

.book-title-mini {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

/* Badges */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.badge-available {
    background: var(--color-green);
    color: var(--bg-white);
}

.badge-coming {
    background: var(--color-coral);
    color: var(--bg-white);
}

/* Progress Bar */
.progress-section {
    max-width: 600px;
    margin: 4rem auto 0;
    text-align: center;
}

.progress-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: var(--bg-alt);
    border-radius: 8px;
    height: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
}

.progress-fill {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    height: 100%;
    border-radius: 6px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.2);
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.8rem;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-alt);
    text-align: center;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--color-primary);
}

.email-signup-container {
    margin-top: 2rem;
}

/* Book Series Page Layout */
.book-card-full {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid var(--color-border);
}

.book-card-full.alt-layout {
    grid-template-columns: 1fr 250px;
}

.book-card-full.alt-layout .book-cover-col {
    order: 2;
}

.book-card-full.alt-layout .book-info-col {
    order: 1;
}

.buy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.retailer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
    margin-top: 0.8rem;
}

@media (min-width: 600px) {
    .retailer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Stat Blocks */
.stat-block {
    background: var(--bg-alt);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--color-primary);
    margin: 1.5rem 0;
}

.stat-item {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item .stat-label {
    color: var(--color-primary);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: var(--bg-light);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

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

.footer-copyright a {
    color: #cbd5e1;
    text-decoration: underline;
}

.footer-copyright a:hover {
    color: var(--bg-white);
}

@media (max-width: 768px) {
    .book-card-full, .book-card-full.alt-layout {
        grid-template-columns: 1fr;
    }
    
    .book-card-full.alt-layout .book-cover-col {
        order: 1;
    }
    
    .book-card-full.alt-layout .book-info-col {
        order: 2;
    }
    
    .book-cover-col {
        max-width: 300px;
        margin: 0 auto;
    }
}
