/* Paranormal Thriller Author Theme - Dark & Atmospheric */

:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #1a1a1a;
    --accent-dark: #2a2a2a;
    --blood-red: #8b0000;
    --ghost-white: #f5f5f5;
    --mist-gray: #b0b0b0;
    --shadow-purple: #4a0e4e;
    --glow-blue: #1e90ff;
}

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--primary-dark);
    color: var(--ghost-white);
    line-height: 1.8;
    background-image:
        radial-gradient(ellipse at top, rgba(74, 14, 78, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    background-attachment: fixed;
}

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

/* Header & Navigation */
header {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.90) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--blood-red);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    padding: 30px 0 10px;
    color: var(--ghost-white);
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5), 0 0 40px rgba(74, 14, 78, 0.3);
    letter-spacing: 2px;
}

.site-tagline {
    text-align: center;
    color: var(--mist-gray);
    font-style: italic;
    font-size: 1.1rem;
    padding-bottom: 20px;
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}

nav {
    background-color: var(--secondary-dark);
    border-top: 1px solid var(--accent-dark);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 15px 30px;
    color: var(--mist-gray);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active {
    color: var(--ghost-white);
    background-color: rgba(139, 0, 0, 0.2);
    border-bottom-color: var(--blood-red);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

/* Main Content */
main {
    min-height: calc(100vh - 400px);
    padding: 40px 0;
    margin-top: 240px; /* Add space for fixed header */
}

h1, h2, h3 {
    color: var(--ghost-white);
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(74, 14, 78, 0.5);
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--blood-red);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

h2 {
    font-size: 2rem;
    margin-top: 30px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
    color: var(--mist-gray);
}

/* Cards & Content Blocks */
.card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.8) 100%);
    border: 1px solid var(--accent-dark);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.4);
    border-color: var(--blood-red);
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.book-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.9) 100%);
    border: 1px solid var(--accent-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(139, 0, 0, 0.5);
    border-color: var(--blood-red);
}

.book-cover {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background-color: var(--primary-dark);
    border-bottom: 2px solid var(--blood-red);
}

.book-info {
    padding: 20px;
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--ghost-white);
}

.book-description {
    color: var(--mist-gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--blood-red) 0%, var(--shadow-purple) 100%);
    color: var(--ghost-white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid var(--blood-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, var(--shadow-purple) 0%, var(--blood-red) 100%);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.8);
    transform: translateY(-2px);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--mist-gray);
    font-weight: 600;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary-dark);
    border: 1px solid var(--accent-dark);
    border-radius: 5px;
    color: var(--ghost-white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--blood-red);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.5);
}

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

/* Blog Posts */
.blog-post {
    margin-bottom: 40px;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.post-meta {
    color: var(--mist-gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.post-excerpt {
    color: var(--mist-gray);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.95) 0%, rgba(10, 10, 10, 1) 100%);
    border-top: 2px solid var(--blood-red);
    padding: 40px 0 20px;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(139, 0, 0, 0.3);
}

.footer-content {
    text-align: center;
    color: var(--mist-gray);
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--mist-gray);
    text-decoration: none;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--blood-red);
    text-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.8rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--accent-dark);
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Success & Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message-success {
    background-color: rgba(0, 128, 0, 0.2);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #90EE90;
}

.message-error {
    background-color: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--blood-red);
    color: #FF6B6B;
}
