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

/* Prevent unwanted borders/outlines on images */
img {
    border: none;
    outline: none;
}

img:hover {
    border: none;
    outline: none;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --text-muted: #95a5a6;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

.btn-amazon {
    background: #ff9500;
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.btn-amazon:hover {
    background: #e67e00;
}

.btn-universal {
    background: #6c5ce7;
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 16px;
}

.btn-universal:hover {
    background: #5a4fcf;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo a {
    text-decoration: none;
    color: var(--primary-color);
}

.nav-logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.nav-logo span {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Featured Authors */
.featured-authors {
    padding: 5rem 0;
    background: var(--light-bg);
}

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

.author-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.author-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.author-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--secondary-color);
    background: var(--white);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--white);
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

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

.author-genre {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-description {
    margin-bottom: 1.5rem;
}

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

.author-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.author-stats i {
    color: var(--secondary-color);
}

/* Latest Releases */
.latest-releases {
    padding: 5rem 0;
    background: var(--white);
}

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

.book-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.book-card .book-item-image {
    width: 100%;
    height: 280px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.book-card .book-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
}

.book-card .book-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-card .book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.book-card .book-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.book-card .book-author {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.book-card .book-genre {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
    width: fit-content;
}

.book-card .book-description {
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.book-card .book-links {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.book-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.book-author {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.book-genre {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.book-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.book-links {
    display: flex;
    gap: 0.5rem;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Genres */
.genres {
    padding: 5rem 0;
    background: var(--light-bg);
}

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

.genre-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.genre-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.genre-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.genre-icon i {
    font-size: 2rem;
    color: var(--white);
}

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

.genre-card p {
    margin-bottom: 1.5rem;
}

.genre-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Call to Action */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
}

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

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(52, 152, 219, 0.8);
    transform: translateY(-2px);
}

.platform-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-links span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 200px;
    }

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

    .author-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
    }

    .book-card .book-item-image {
        height: 240px;
        padding: 10px;
    }

    .author-image {
        width: 100px;
        height: 100px;
        margin: 0 auto 1rem;
    }

    .author-image img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .author-card,
    .book-card,
    .genre-card {
        padding: 1.5rem;
    }

    .author-image {
        width: 80px;
        height: 80px;
        margin: 0 auto 0.8rem;
    }

    .author-image img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
        display: block;
    }

    .book-links {
        flex-direction: column;
    }
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Authors Showcase */
.authors-showcase {
    padding: 5rem 0;
    background: var(--light-bg);
}

.author-showcase {
    background: var(--white);
    margin-bottom: 6rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

.author-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    padding: 3rem;
    align-items: start;
}

.author-profile .author-image {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: none;
    background: var(--white);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-profile .author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--white);
    border-radius: 10px;
}

.author-details h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.author-details .author-genre {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.author-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.author-stats-detailed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.author-stats-detailed .stat {
    text-align: center;
}

.author-stats-detailed .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.author-stats-detailed .label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.specialty {
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.author-links {
    display: flex;
    gap: 1rem;
}

.author-links .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-books {
    padding: 2rem 3rem 3rem;
    background: var(--light-bg);
    border-radius: 0 0 20px 20px;
}

.author-books h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 1rem;
    text-align: center;
    position: relative;
}

.author-books h3::before {
    content: "📚";
    position: absolute;
    left: -2rem;
    font-size: 1.5rem;
}

.author-books h3::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

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

.book-item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.book-item-image {
    width: 100%;
    height: 280px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* Placeholder will be handled by JavaScript for missing images */

/* Coming Soon placeholder for unpublished books */
.book-item-image.coming-soon,
.book-cover.coming-soon {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.coming-soon-text {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: var(--white);
}

.book-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    background: var(--white);
}

.book-item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.book-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 600;
}

.book-details p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}


.book-status.published {
    background: #d5f4e6;
    color: #27ae60;
}

.book-status.manuscript {
    background: #fef9e7;
    color: #f39c12;
}

.book-status.draft {
    background: #fadbd8;
    color: #e74c3c;
}

/* Responsive Design for Authors */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }

    .author-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
        text-align: center;
    }

    .author-profile .author-image {
        width: 200px;
        height: 200px;
        margin: 0 auto;
        padding: 10px;
    }

    .author-stats-detailed {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .author-links {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .author-links .btn {
        width: 200px;
        justify-content: center;
    }

    .author-books {
        padding: 2rem;
        margin: 0 -1rem;
        border-radius: 0;
    }

    .books-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-item-image {
        height: 200px;
        padding: 10px;
    }

    .book-item-content {
        padding: 1rem;
    }

    .author-specialties {
        justify-content: center;
    }
}

/* Books Filter */
.books-filter {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 50px;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-bg);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Books Catalog */
.books-catalog {
    padding: 5rem 0;
    background: var(--light-bg);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.book-card-detailed {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 200px 1fr;
}

.book-card-detailed:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.book-card-detailed .book-cover {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.book-card-detailed .book-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    border: none;
    outline: none;
    box-shadow: none;
}

.book-card-detailed .book-cover img:hover {
    border: none;
    outline: none;
    box-shadow: none;
}

.book-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: 8px;
}

.book-card-detailed:hover .book-overlay {
    opacity: 1;
}

.book-overlay .book-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-overlay .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
    white-space: nowrap;
}

.book-card-detailed .book-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    overflow: visible;
}

.book-meta {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.book-genre,
.book-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    line-height: 1;
    box-sizing: border-box;
    vertical-align: top;
}

.book-genre {
    background: var(--secondary-color);
    color: var(--white);
}

.book-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-card-detailed .book-author {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.book-card-detailed .book-description {
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.book-card-detailed .book-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
}

/* Book Purchase Buttons */
.book-purchase-buttons {
    display: flex !important;
    gap: 0.8rem;
    margin-top: auto;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

.book-purchase-buttons .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 10px 16px;
    text-align: center;
}

.btn-disabled {
    background: var(--text-muted);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover {
    background: var(--text-muted);
    transform: none;
    box-shadow: var(--shadow);
}

.book-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.book-details i {
    color: var(--secondary-color);
}

/* Catalog Stats */
.catalog-stats {
    padding: 5rem 0;
    background: var(--white);
}

.catalog-stats h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    text-align: left;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Books */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: auto;
    }

    .filter-buttons {
        justify-content: center;
    }

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

    .book-card-detailed {
        grid-template-columns: 1fr;
    }

    .book-card-detailed .book-cover {
        height: 280px;
        padding: 10px;
    }

    .book-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.6);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .book-card-detailed .book-cover {
        height: 250px;
        padding: 8px;
    }

    .book-overlay .book-links {
        flex-direction: row;
        gap: 0.5rem;
    }

    .book-overlay .btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .book-purchase-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .book-purchase-buttons .btn {
        min-width: auto;
        width: 100%;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    color: var(--white);
    font-size: 1.2rem;
}

.method-details h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.method-details p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.method-details a {
    color: var(--secondary-color);
    text-decoration: none;
}

.method-details a:hover {
    text-decoration: underline;
}

.method-details span {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.8rem;
}

.quick-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.quick-links a:hover {
    color: var(--secondary-color);
}

.form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.guidelines-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.guideline-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.guideline-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.guideline-card .card-icon i {
    color: var(--white);
    font-size: 2rem;
}

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

.guideline-card ul {
    list-style: none;
    text-align: left;
}

.guideline-card li {
    padding: 0.3rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.guideline-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* FAQ Styles */
.faq-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--secondary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

/* About Page Styles */
.mission-section {
    padding: 5rem 0;
    background: var(--white);
}

.mission-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.mission-visual {
    display: flex;
    justify-content: center;
}

.mission-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-circle {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.stat-circle .number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-circle .label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.values-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

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

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    color: var(--white);
    font-size: 2rem;
}

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

.process-section {
    padding: 5rem 0;
    background: var(--white);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.genres-expertise {
    padding: 5rem 0;
    background: var(--light-bg);
}

.genre-showcase {
    display: grid;
    gap: 2rem;
}

.genre-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.genre-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.genre-image i {
    color: var(--white);
    font-size: 2.5rem;
}

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

.genre-count {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.team-section {
    padding: 5rem 0;
    background: var(--white);
}

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

.advantage-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--success-color), #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    color: var(--white);
    font-size: 1.8rem;
}

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

/* Responsive Design for Contact and About */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .mission-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-circle {
        width: 100px;
        height: 100px;
    }

    .stat-circle .number {
        font-size: 1.5rem;
    }

    .stat-circle .label {
        font-size: 0.8rem;
    }

    .values-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        gap: 1rem;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .process-timeline::before {
        left: 25px;
    }

    .genre-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .genre-image {
        margin: 0 auto;
    }
}

/* Placeholder Images - Handle missing images */
.author-image img,
.book-cover img {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
}

.author-image img:not([src]),
.author-image img[src=""],
.author-image img[src*="authors/"]:not([src*="http"]) {
    content: "👤";
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: var(--white);
    font-size: 3rem;
}

.book-cover img:not([src]),
.book-cover img[src=""],
.book-cover img[src*="books/"]:not([src*="http"]) {
    content: "📚";
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: var(--white);
    font-size: 3rem;
}

/* Author image fallback handled by main .author-image styling */

.book-cover {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    position: relative;
}

/* Book cover placeholder removed - using JavaScript handling */

.book-cover img {
    position: relative;
    z-index: 2;
}