/*==================================
  RESET AND BASE STYLES 
==================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F0F2F5;  /* Matching mockup background */
}

.container {
    max-width: 1100px;  /* We'll adjust this once we have exact measurement */
    margin: 0 auto;
    padding: 0 20px;
    width: 95%;
}

/*==================================
  BASE CONTENT SECTIONS
==================================*/
.content-section {
    width: 100%;
    padding: 60px 0;
}

.content-section .container {
    max-width: 1100px;  /* Consistent width based on Available Now section */
    margin: 0 auto;
    padding: 0 20px;
}

.content-section .content-wrapper {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    padding: 40px;
}

/* Section specific background colors */
.available-section {
    background: #F0F2F5;  /* Light gray from current design */
}

.coming-soon-section {
    background: #000;     /* Black background from mockup */
}

.coming-soon-section .section-title {
    color: white;        /* White text for dark background */
}

/* Section specific column layouts */
.coming-soon-section .content-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;  /* We can adjust these ratios based on mockup */
    gap: 30px;
}

/*==================================
  HEADER STYLES
==================================*/
.site-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: relative;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    width: auto;
    height: 60px;  /* Adjust this value based on desired size */
    max-width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0056b3;
}

/*==================================
  MOBILE MENU
==================================*/
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/*==================================
  COUNTDOWN SECTION
==================================*/
.countdown-section {
    text-align: center;
    padding: 25px 0;
    background: #f8f9fa;
}

.countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.countdown-text {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.countdown-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.countdown-item .number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

.countdown-item .label {
    font-size: 1rem;
    color: #666;
}

.countdown-separator {
    color: #666;
    margin: 0 5px;
}

/*==================================
  HERO SECTION
==================================*/
.hero-section {
    padding: 10px 0 20px;  /* Reduced bottom padding */
    background: #f8f9fa;
}

.hero-section .container {
    padding: 0;  /* Remove container padding for full-width on mobile */
}

.hero-image {
    width: 100%;
    max-width: 1100px;  /* Match container width */
    margin: 0 auto;
    display: block;
    height: auto;
}

/*==================================
  SECTION TITLES
==================================*/
.section-title {
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

/*==================================
  BOOKS SECTION
==================================*/
.books-section {
    padding: 40px 0;
    margin: 10px 0;
}

.books-section .container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    padding: 40px;
}

.books-grid {
    display: flex;
    flex-direction: column;
}

.book-item {
    display: flex;
    gap: 40px;
    position: relative;
    padding: 0 20px;
    margin-bottom: 10px;  /* Reduced space */
}

.book-divider {
    width: 862px;
    height: 20px;
    margin: 20px auto;
    background: url('../img/divider.png') no-repeat center;
    background-size: contain;
}

.book-item:last-child + .book-divider {
    display: none;  /* Hide divider after last book */
}

.book-image {
    flex: 0 0 300px;
}

.book-cover-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.frikkas-world-banner {
    width: 100%;
    height: auto;
    margin-top: 5px;
    box-shadow: none;
}

.book-info {
    flex: 1;
}


.book-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.book-description p {
    margin-bottom: 0.8em;
}

.book-description p:last-child {
    margin-bottom: 0;
}

/* Additional styling for strong text */
.book-description strong {
    font-weight: 700;
}

/*==================================
  BUTTON STYLES
==================================*/

.book-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;  /* Reduced space */
    flex-wrap: nowrap;
}

.btn {
    min-width: 130px;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-hardcover { background-color: #4A90E2; }
.btn-softcover { background-color: #50B64A; }
.btn-special_softcover { 
    background-color: #333;
    min-width: 180px;
}
.btn-ebook { background-color: #9B59B6; }
.btn-audio { background-color: #7F8C8D; }
.btn-coming-soon { background-color: #7F8C8D; }

/*==================================
  BOOK DIVIDER
==================================*/
.book-divider {
    width: 100%;
    max-width: 862px;
    height: 20px;
    margin: 30px 0;
    background-image: url('../img/divider.png');  /* Adjust path if needed */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 862px 20px;
}

/*==================================
  BUTTON STYLES
==================================*/
.book-buttons-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 10px;
//*    padding-top: 20px; *//
    border-top: 1px solid #eee;
}

.book-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 20px;
    max-width: 800px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    margin-bottom: 5px;
    z-index: 1000;
}

.btn-hardcover { background-color: #4A90E2; }
.btn-softcover { background-color: #50B64A; }
.btn-special { background-color: #E2994A; }
.btn-ebook { background-color: #9B59B6; }
.btn-upcoming,
.btn-coming-soon { background-color: #7F8C8D; }

/*==================================
  REVIEW SECTION
==================================*/
.review-section {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;  /* Reduced top margin */
}

.review-section p {
    margin-bottom: 10px;
}

.review-link {
    display: inline-block;
    padding: 6px 15px;
    background-color: #4A90E2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.review-link:hover {
    background-color: #357abd;
}

.feedback-link {
    color: #dc3545;  /* Red color for feedback link */
    text-decoration: none;
    font-weight: 600;
}

.feedback-link:hover {
    text-decoration: underline;
}

/*==================================
  ABOUT SECTION
==================================*/
.about-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.author-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.author-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
}

.author-text {
    flex: 1;
}

/*==================================
  CONTACT SECTION
==================================*/
.contact-section {
    padding: 60px 0;
    background: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
}

.g-recaptcha {
    margin-bottom: 20px;
}

/*==================================
  CONTAINER OVERRIDES
==================================*/
.books-section .container {
    max-width: 960px;  /* More constrained width for book content */
    padding: 0 30px;   /* Consistent padding */
}

/* Divider styling */
.book-divider {
    height: 40px;  /* Fixed height for divider area */
    position: relative;
    overflow: hidden;
    margin: 30px 0;
}

.book-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;  /* Extend beyond container */
    height: 100%;
    background-image: url('img/divider.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto 100%;  /* Maintain height, auto width */
}

/*==================================
  RESPONSIVE STYLES
==================================*/
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
    }
    
    .content-section {
        padding: 40px 0;
    }

    .content-section .content-wrapper {
        padding: 20px;
    }

    .coming-soon-section .content-columns {
        grid-template-columns: 1fr;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .logo-img {
        height: 45px;  /* Slightly smaller on mobile */
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .author-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .book-item {
        flex-direction: column;
    }
    
    .book-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto 20px;
    }
    
    .book-info {
        padding-right: 0;
    }
    
    .book-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .countdown-item .days,
    .countdown-item .hours,
    .countdown-item .minutes,
    .countdown-item .seconds {
        font-size: 2rem;
    }
    
    .book-buttons {
        grid-template-columns: 1fr;
    }
}