/*
Theme Name: Khichuri Prokashoni
Description: A modern, minimal WordPress theme for Bangla ebook publication sites
Version: 1.1
Author: Custom Theme
Text Domain: khichuri
*/

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

body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    color: #2c3e50;
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f39c12;
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #f39c12;
}

 /* Custom styles for the home page */
    .main {
        padding-top: 50px;
        min-height: 100vh;
    }

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

    /* Hero Section */
    .hero {
        text-align: center;
        padding: 3rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 1rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1.1rem;
        color: #7f8c8d;
        margin-bottom: 2.5rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Search Bar */
    .search-container {
        max-width: 600px;
        margin: 0 auto 4rem;
        position: relative;
    }

    .search-bar {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border: 2px solid #ecf0f1;
        border-radius: 50px;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        font-family: inherit;
    }

    .search-bar:focus {
        outline: none;
        border-color: #f39c12;
        box-shadow: 0 6px 25px rgba(243, 156, 18, 0.15);
    }

    .search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #f39c12;
        border: none;
        padding: 0.8rem 1.5rem;
        border-radius: 50px;
        color: white;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .search-btn:hover {
        background: #e67e22;
        transform: translateY(-50%) scale(1.02);
    }

    /* Book Grid */
    .books-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .books-section h2 {
        font-size: 1.8rem;
        color: #2c3e50;
        font-weight: 600;
        margin: 0;
    }

    .view-all-link {
        background: #3498db;
        color: white;
        padding: 0.7rem 1.5rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .view-all-link:hover {
        background: #2980b9;
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
    }

    .view-all-link::after {
        content: '→';
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .view-all-link:hover::after {
        transform: translateX(3px);
    }

    .books-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .book-card {
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        transition: all 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.03);
    }

    .book-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    }

    .book-cover {
        width: fit-content;
        height: 200px;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: #6c757d;
        position: relative;
        overflow: hidden;
        margin: 20px auto;
    }

    .book-cover::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.1));
    }

    .book-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
        z-index: 1;
    }

    .book-info {
        padding: 1.5rem;
    }

    .book-title {
        font-size: 1.2rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .book-author {
        color: #7f8c8d;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .book-price {
        font-size: 1.3rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0.8rem;
    }

    .book-formats {
        margin-bottom: 1rem;
    }

    .formats-label {
        font-size: 0.85rem;
        color: #7f8c8d;
        margin-bottom: 0.4rem;
        font-weight: 500;
    }

    .format-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .format-tag {
        background: #3498db;
        color: white;
        padding: 0.2rem 0.6rem;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .format-tag.pdf {
        background: #e74c3c;
    }

    .format-tag.epub {
        background: #9b59b6;
    }

    .format-tag.mobi {
        background: #f39c12;
    }

    .format-tag.kfx {
        background: #1abc9c;
    }

    .format-tag.azw3 {
        background: #34495e;
    }

    .format-tag.txt {
        background: #95a5a6;
    }

    /* No Books Found Message */
    .no-books-message {
        text-align: center;
        padding: 4rem 2rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        margin: 2rem 0;
    }

    .no-books-icon {
        font-size: 4rem;
        color: #bdc3c7;
        margin-bottom: 1.5rem;
        display: block;
    }

    .no-books-title {
        font-size: 1.5rem;
        color: #2c3e50;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .no-books-text {
        color: #7f8c8d;
        font-size: 1rem;
        line-height: 1.6;
        max-width: 400px;
        margin: 0 auto 2rem;
    }

    .add-books-link {
        background: #f39c12;
        color: white;
        padding: 0.8rem 2rem;
        border-radius: 25px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        display: inline-block;
    }

    .add-books-link:hover {
        background: #e67e22;
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
    }

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

    .btn {
        padding: 0.7rem 1.2rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-block;
        text-align: center;
    }

    .btn-primary {
        background: #f39c12;
        color: white;
        flex: 1;
    }

    .btn-primary:hover {
        background: #e67e22;
        transform: translateY(-1px);
    }

    .btn-secondary {
        background: #ecf0f1;
        color: #2c3e50;
        flex: 1;
    }

    .btn-secondary:hover {
        background: #d5dbdb;
        transform: translateY(-1px);
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .container {
            padding: 0 1rem;
        }

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

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

        .books-grid {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
        }

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

    /* Smooth animations */
    .fade-in {
        animation: fadeIn 0.6s ease-out;
    }

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

/* Main Content */
.main {
    padding-top: 100px;
    min-height: 100vh;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 4rem;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #ecf0f1;
    border-radius: 50px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-bar:focus {
    outline: none;
    border-color: #f39c12;
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.15);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f39c12;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-btn:hover {
    background: #e67e22;
    transform: translateY(-50%) scale(1.02);
}

/* Book Grid */
.books-section h2, .archive-header h1, .search-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.book-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.book-cover {
     width: fit-content;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #6c757d;
    position: relative;
    overflow: hidden;
    margin: 20px auto;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(230, 126, 34, 0.1));
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-author {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.book-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 1rem;
}

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

.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #f39c12;
    color: white;
    flex: 1;
}

.btn-primary:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    flex: 1;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-1px);
}

/* Single Book Page */

.book-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.book-cover-large {
    text-align: center;
}

.book-cover-large img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.placeholder-cover {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #6c757d;
}

.book-details .book-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.book-details .book-author {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.book-details .book-price {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.book-details .book-actions {
    gap: 1rem;
}

.book-details .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.book-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.8;
}

.book-content h2, .book-content h3 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.book-content p {
    margin-bottom: 1rem;
}

/* Archive and Search Headers */
.archive-header, .search-header {
    text-align: center;
    padding: 2rem 0 3rem;
}

.archive-header p, .search-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.page-numbers {
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: #f39c12;
}

.copyright {
    color: #95a5a6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

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

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

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

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

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

    .book-details .book-title {
        font-size: 1.8rem;
    }

    .book-content {
        padding: 1.5rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* WordPress specific styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    padding: 0.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}



