/* ========================================
   Edward Umade Author Website - Main Styles
   Complete Stylesheet for All Pages
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a1a;
    --secondary: #f5f5f5;
    --accent: #2563eb;
    --text: #333;
    --light-text: #666;
    --border: #e5e5e5;
    --danger: #dc2626;
    --success: #10b981;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--secondary);
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

/* ========================================
   HERO SECTION (Homepage)
   ======================================== */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.cta-button {
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    font-family: 'Georgia', serif;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CAROUSEL (Homepage)
   ======================================== */
.carousel-section {
    background: white;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.carousel {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    padding: 3rem;
    gap: 3rem;
}

.carousel-item img {
    width: 300px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-content {
    flex: 1;
}

.carousel-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carousel-content p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-button:hover {
    background: white;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}

.indicator.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   BOOKS SECTION & GRID
   ======================================== */
.books-section {
    padding: 4rem 2rem;
    background: var(--secondary);
}

.books-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.book-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.book-description {
    color: var(--light-text);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.book-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.free-badge {
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.download-btn,
.buy-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
}

.download-btn {
    background: #10b981;
    color: white;
}

.download-btn:hover {
    background: #059669;
}

.buy-btn {
    background: var(--accent);
    color: white;
}

.buy-btn:hover {
    background: #1d4ed8;
}

/* ========================================
   LIBRARY PAGE SPECIFIC
   ======================================== */
.library-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.library-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.library-header p {
    font-size: 1.2rem;
    color: #ddd;
}

.library-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar label {
    font-weight: 600;
}

.filter-bar select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Georgia', serif;
}

.books-count {
    margin-left: auto;
    color: var(--light-text);
}

/* ========================================
   ABOUT PAGE SPECIFIC
   ======================================== */
.about-section {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-content {
    display: flex;
    gap: 3rem;
    padding: 3rem;
}

.author-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text .subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    font-style: italic;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--text);
    font-size: 1.05rem;
}

.philosophy-section {
    background: var(--secondary);
    padding: 3rem;
    border-top: 1px solid #e5e5e5;
}

.philosophy-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.philosophy-quote {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text);
    font-style: italic;
}

.achievements {
    padding: 3rem;
}

.achievements h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 10px;
}

.achievement-item .number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.achievement-item .label {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* ========================================
   CONTACT PAGE SPECIFIC
   ======================================== */
.contact-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.contact-card h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.email-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 50px;
    transition: all 0.3s;
}

.email-link:hover {
    background: var(--accent);
    color: white;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.social-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.social-links a:hover {
    color: var(--accent);
}

/* ========================================
   HELP PAGE SPECIFIC
   ======================================== */
.help-section {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.help-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
}

.help-card h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.help-item {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e5e5;
}

.help-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.help-item h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.help-item h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--text);
}

.help-item p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

.help-item ol,
.help-item ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.help-item li {
    color: var(--light-text);
    margin-bottom: 0.8rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.help-item a {
    color: var(--accent);
    text-decoration: none;
}

.help-item a:hover {
    text-decoration: underline;
}

.icon {
    width: 32px;
    height: 32px;
}

.highlight-box {
    background: #dbeafe;
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.highlight-box h3 {
    color: var(--accent);
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-box p {
    margin-bottom: 0;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.warning-box strong {
    color: #92400e;
}

.contact-cta {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
}

.contact-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-cta p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.contact-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
}

/* ========================================
   FORMS (All Pages)
   ======================================== */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   MESSAGES & NOTIFICATIONS
   ======================================== */
.success-message,
.error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: none;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
}

.error-message {
    background: #fee;
    color: #c00;
}

.success-message.show,
.error-message.show {
    display: block;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading.show {
    display: block;
}

.spinner {
    border: 4px solid var(--secondary);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {

    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero */
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Carousel */
    .carousel-item {
        flex-direction: column;
        text-align: center;
    }

    .carousel-content h3 {
        font-size: 2rem;
    }

    /* Books Grid */
    .books-grid {
        grid-template-columns: 1fr;
    }

    /* Filter Bar */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .books-count {
        margin-left: 0;
    }

    /* About Page */
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-photo {
        width: 250px;
        height: 250px;
    }

    .about-text h1 {
        font-size: 2rem;
    }

    /* Contact Page */
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-card h1 {
        font-size: 2rem;
    }

    /* Help Page */
    .help-card {
        padding: 2rem 1.5rem;
    }

    .help-card h1 {
        font-size: 2rem;
    }

    .help-item h2 {
        font-size: 1.5rem;
    }

    /* Library */
    .library-header h1 {
        font-size: 2rem;
    }
}