/* Main Styles - A.H. Ostmo Author Website */

/* Color Variables */
:root {
    --primary-color: #00d4ff;
    --primary-dark: #0099cc;
    --secondary-color: #ff00ff;
    --accent-color: #00ffcc;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #00ffcc 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #ff00ff 0%, #00d4ff 100%);
}

/* Author Hero Section */
.author-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 153, 204, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.author-name {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin: 0 0 1rem 0;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #00ffcc;
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #ff00ff;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(80% 0 0 0); transform: translate(1px, 1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 20% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(0 0 70% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(-1px, -1px); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.8)); }
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.8;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll-down 2s infinite;
}

@keyframes scroll-down {
    0% { transform: translateY(0); opacity: 0; }
    40% { opacity: 1; }
    80% { transform: translateY(20px); opacity: 0; }
    100% { opacity: 0; }
}

/* Featured Books Section */
.featured-books {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.book-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.book-cover {
    margin-bottom: 2rem;
}

.book-placeholder {
    width: 100%;
    height: 400px;
    background: var(--gradient-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.book-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.book-placeholder.coming-soon {
    background: var(--gradient-secondary);
    opacity: 0.7;
}

.book-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.book-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.book-meta span {
    padding: 0.25rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.book-meta .status.coming {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
    color: var(--secondary-color);
}

/* Author Intro Section */
.author-intro {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-style: italic;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 5rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-form.inline {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Button Styles Override */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 0.875rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

/* Dark Theme Overrides */
body {
    background: var(--bg-darker);
    color: var(--text-light);
}

.site-header {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.logo a {
    color: var(--text-light);
    font-weight: 900;
    letter-spacing: 0.1em;
}

.main-nav a {
    color: var(--text-muted);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Trilogy Page Styles */
.trilogy-hero {
    padding: 5rem 2rem;
    background: var(--gradient-secondary);
    text-align: center;
}

.trilogy-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.book-details {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.book-details.alternate {
    background: var(--bg-darker);
}

.book-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.book-details.alternate .book-layout {
    grid-template-columns: 2fr 1fr;
}

.book-cover-large {
    width: 100%;
    height: 500px;
    background: var(--gradient-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.book-cover-large::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.book-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.book-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.book-status.coming {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.3);
    color: var(--secondary-color);
}

.book-synopsis {
    margin-bottom: 2rem;
}

.book-synopsis p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trilogy-themes {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.theme-card {
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
}

.theme-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* About Page Styles */
.about-hero {
    padding: 5rem 2rem;
    background: var(--gradient-secondary);
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.author-bio {
    padding: 5rem 2rem;
    background: var(--bg-dark);
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bio-text h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.bio-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.author-quote {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.author-quote blockquote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.bio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.author-facts {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 2rem;
}

.author-facts h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.author-facts ul {
    list-style: none;
}

.author-facts li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.author-facts strong {
    color: var(--text-light);
}

.connect-box {
    background: var(--gradient-secondary);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.connect-box h3 {
    margin-bottom: 1rem;
}

.connect-box p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.writing-process {
    padding: 5rem 2rem;
    background: var(--bg-darker);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.process-step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .author-name {
        font-size: 3rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form.inline {
        flex-direction: column;
    }
    
    .book-layout,
    .book-details.alternate .book-layout {
        grid-template-columns: 1fr;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
    }
}