/* Custom styles for author website */

/* Dark theme enhancements */
body {
    background-color: #000;
    color: #e0e0e0;
}

/* Hero section styling */
.bg-black {
    background-color: #000 !important;
}

/* Make hero image more visible */
.bg-black-60 {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

/* Hero background setup */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero1.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Hero image height and sizing */
header.cover {
    min-height: 70vh;
    background: none !important;
    position: relative;
}

/* Remove dimming background */
header.cover .bg-black-60 {
    background-color: transparent !important;
    min-height: 70vh;
}

/* Adjust text container padding */
header .tc-l.pv6 {
    padding-top: 20vh;
    padding-bottom: 15vh;
}

/* Ensure main content has solid background */
main.pb7 {
    position: relative;
    z-index: 2;
    background-color: transparent;
}

/* Give sections their backgrounds */
section.bg-black {
    background-color: transparent !important;
}

/* Make all bg-black elements transparent */
.bg-black {
    background-color: transparent !important;
}

/* Hero text styling */
header .f2.f1-l {
    font-size: 5rem;
    font-weight: 100;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

header .fw1.f5.f3-l {
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Typography improvements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: -0.02em;
}

.f-headline-l {
    font-size: 4rem;
    font-weight: 200;
    letter-spacing: -0.03em;
}

/* Navigation styling */
.bg-black nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bg-black nav a:hover {
    color: #fff;
}

/* Logo styling */
nav a img {
    max-height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

nav a:hover img {
    opacity: 0.8;
}

/* Sticky logo */
.sticky-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    max-height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.sticky-logo:hover {
    opacity: 0.8;
}

/* Hide the nav logo when sticky logo is visible */
@media (min-width: 768px) {
    nav a img {
        visibility: hidden;
    }
}

/* Book/Story cards */
article {
    background-color: #111;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

article:hover {
    background-color: #1a1a1a;
    border-color: #333;
    transform: translateY(-2px);
}

/* Override white background on story/book list cards */
.bg-white {
    background-color: #e4e1cb !important;
}

/* Links */
a {
    color: #4a9eff;
}

a:hover {
    color: #6bb3ff;
}

/* Purchase links styling */
.purchase-links a {
    display: inline-block;
    margin: 0.5rem 1rem 0.5rem 0;
    padding: 0.5rem 1rem;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.purchase-links a:hover {
    background-color: #333;
    border-color: #555;
}

/* Blockquotes for reviews */
blockquote {
    border-left: 3px solid #4a9eff;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #b0b0b0;
}

/* Footer adjustments */
footer {
    background-color: #000;
    border-top: 1px solid #222;
}

/* Near black background - transparent */
.bg-near-black {
    background-color: transparent !important;
}

/* Homepage sections */
section h2 {
    letter-spacing: -0.02em;
}

/* Quick links hover effect */
.hover-white:hover {
    color: #fff !important;
}

/* Book cover styling */
.shadow-1 {
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 4px;
}

/* Book page layout */
article .w-third-l img {
    position: sticky;
    top: 80px;
    margin-top: 16px;
}

/* Story download buttons */
.bg-black-10 {
    background-color: rgba(0, 0, 0, 0.1);
}

.bg-dark-gray {
    background-color: #333;
}

.hover-bg-gray:hover {
    background-color: #555;
}

.br2 {
    border-radius: 0.25rem;
}

.br3 {
    border-radius: 0.5rem;
}

/* Story content styling */
article .measure-wide {
    max-width: 65ch;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .f-headline-l {
        font-size: 2.5rem;
    }
    
    header .f2.f1-l {
        font-size: 3rem;
    }
    
    /* Center book cover on mobile */
    article .w-third-l img {
        margin: 0 auto;
        position: static;
    }
}