/*
Theme Name: BookDescribe 
Theme Author: Your Name
Version: 1.0
Description: Custom book review theme
*/

/* ===== DESIGN STARTS HERE ===== */

/* GENERAL */

body{
    margin:0;
    background:#f4f4f4;
    font-family:Arial,sans-serif;
    color:#222;
}

.container{
    width:1200px;
    max-width:95%;
    margin:auto;
}

/* HEADER */

.top-header{
    background:#111;
    padding:20px 0;
}

.header-area{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo a{
    color:#fff;
    text-decoration:none;
    font-size:34px;
    font-weight:bold;
}

.search-box form{
    display:flex;
}

.search-box input{
    padding:12px;
    width:280px;
    border:none;
}

.search-box button{
    background:#e63946;
    color:#fff;
    border:none;
    padding:12px 18px;
}

/* LAYOUT */

.layout{
    display:flex;
    gap:30px;
    margin-top:40px;
}

.content{
    width:70%;
}

.sidebar{
    width:30%;
}

/* POST CARD */

.post-card{
    display:flex;
    gap:20px;
    background:#fff;
    padding:20px;
    margin-bottom:25px;
    border-radius:8px;
}

.post-card img{
    width:180px;
    height:260px;
    object-fit:cover;
}

.post-card-content{
    flex:1;
}

.post-card h2{
    margin-top:0;
}

.post-card a{
    text-decoration:none;
    color:#111;
}

.post-card p{
    line-height:1.8;
}

.read-btn{
    background:#e63946;
    color:#fff !important;
    padding:10px 16px;
    display:inline-block;
    margin-top:10px;
    border-radius:5px;
}

/* SIDEBAR */

.sidebar-widget{
    background:#fff;
    padding:20px;
    margin-bottom:25px;
    border-radius:8px;
}

.sidebar-widget h3{
    margin-top:0;
    border-left:4px solid #e63946;
    padding-left:10px;
}

.sidebar-widget ul{
    list-style:none;
    padding:0;
}

.sidebar-widget li{
    padding:8px 0;
    border-bottom:1px solid #eee;
}

.popular-post{
    display:flex;
    gap:12px;
    margin-bottom:15px;
}

.popular-post img{
    width:70px;
    height:100px;
    object-fit:cover;
}

.popular-post a{
    color:#111;
    text-decoration:none;
    font-size:14px;
}

.newsletter input{
    width:100%;
    padding:12px;
    margin-bottom:10px;
}

.newsletter button{
    width:100%;
    background:#e63946;
    color:#fff;
    border:none;
    padding:12px;
}

/* FOOTER */

.site-footer{
    background:#111;
    color:#fff;
    padding:50px 0 20px;
    margin-top:50px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.site-footer ul{
    list-style:none;
    padding:0;
}

.site-footer li{
    padding:6px 0;
}

.copyright{
    text-align:center;
    margin-top:30px;
    border-top:1px solid #333;
    padding-top:20px;
}

/* MOBILE */

@media(max-width:768px){

    .header-area{
        flex-direction:column;
        gap:20px;
    }

    .layout{
        flex-direction:column;
    }

    .content,
    .sidebar{
        width:100%;
    }

    .post-card{
        flex-direction:column;
    }

    .post-card img{
        width:100%;
        height:auto;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
    
    /* DARK MODE */

#darkModeToggle{
    background:#e63946;
    color:#fff;
    border:none;
    padding:10px 15px;
    cursor:pointer;
    border-radius:5px;
}

.dark-mode{
    background:#111;
    color:#fff;
}

.dark-mode .post-card,
.dark-mode .sidebar-widget{
    background:#222;
    color:#fff;
}

.dark-mode a{
    color:#fff;
}

/* AUTHOR BOX */

.author-box{
    background:#fff;
    padding:25px;
    margin-top:40px;
    border-left:5px solid #e63946;
}

/* STICKY SIDEBAR */

.sidebar{
    position:sticky;
    top:20px;
    height:fit-content;
}

/* HOMEPAGE SLIDER */

.homepage-slider img{
    width:100%;
    height:450px;
    object-fit:cover;
}

/* REVIEW SCORE */

.review-score{
    display:flex;
    align-items:center;
    gap:20px;
    background:#fff;
    padding:25px;
    border-radius:10px;
    margin-bottom:30px;
}

.score-circle{
    width:100px;
    height:100px;
    background:#e63946;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    font-weight:bold;
}

.score-text h3{
    margin:0;
}

/* TABLE OF CONTENTS */

.table-of-contents{
    background:#fff;
    padding:20px;
    border-radius:10px;
    margin-bottom:25px;
}

.table-of-contents ul{
    padding-left:20px;
}

.table-of-contents a{
    text-decoration:none;
    color:#e63946;
}

/* FLOATING SHARE */

.floating-share{
    position:fixed;
    left:15px;
    top:40%;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.floating-share a{
    background:#e63946;
    color:#fff;
    padding:10px;
    text-decoration:none;
    border-radius:5px;
}

/* CATEGORY SLIDER */

.category-slider{
    padding:30px 0;
}

.category-items{
    display:flex;
    gap:20px;
    overflow-x:auto;
}

.cat-box{
    min-width:180px;
    background:#fff;
    padding:25px;
    text-align:center;
    border-radius:10px;
    font-weight:bold;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

/* MAIN MENU */

.main-menu{
    background:#ffffff;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.main-menu ul{
    margin:0;
    padding:0;
    list-style:none;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

.main-menu li{
    position:relative;
}

.main-menu a{
    display:block;
    padding:18px 22px;
    color:#111;
    text-decoration:none;
    font-weight:600;
    font-size:15px;
    transition:0.3s;
}

.main-menu a:hover{
    background:#e63946;
    color:#fff;
}

/* ACTIVE MENU */

.current-menu-item a{
    background:#e63946;
    color:#fff;
}

/* MOBILE MENU */

@media(max-width:768px){

    .main-menu ul{
        flex-direction:column;
        align-items:flex-start;
    }

    .main-menu a{
        width:100%;
        padding:15px;
    }

}



/* HEADER */

.header-area{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:42px;
    font-weight:bold;
}

.logo a{
    color:#fff;
    text-decoration:none;
}

/* HEADER FIX */

.top-header{
    background:#111;
    padding:20px 0;
}

.header-area{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

/* LOGO */

.logo a{
    color:#fff;
    text-decoration:none;
    font-size:40px;
    font-weight:bold;
}

/* FORCE HORIZONTAL MENU */

.main-menu ul,
.main-menu .menu {
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    gap:25px !important;

    list-style:none !important;
    margin:0 !important;
    padding:0 !important;
}

.main-menu li{
    display:inline-block !important;
    margin:0 !important;
    padding:0 !important;
}

.main-menu a{
    color:#ffffff !important;
    text-decoration:none !important;
    font-size:16px !important;
    font-weight:600 !important;
}

.main-menu a:hover{
    color:#e63946 !important;
}

