/*
* Dr. Atef Books Website
* A modern, responsive website showcasing Dr. Atef's books
* Author: Professional Web Developer
* Version: 1.0
*/

/* ===== BASE STYLES ===== */
:root {
    /* Color Variables - Light Theme */
    --primary-color: #1a3c5a;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --text-color: #333333;
    --light-text: #777777;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --dark-bg: #2c3e50;
    --border-color: #e1e1e1;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #2c3e50;
    --filter-btn-bg: transparent;
    --filter-btn-color: #333333;
    --book-tag-bg: #f9f9f9;
    --book-tag-color: #1a3c5a;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);

    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;

    /* Spacing */
    --section-spacing: 5rem;
    --element-spacing: 2rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #4fa3e0;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --text-color: #e0e0e0;
    --light-text: #b0b0b0;
    --bg-color: #121212;
    --light-bg: #1e1e1e;
    --dark-bg: #0a0a0a;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --header-bg: rgba(18, 18, 18, 0.95);
    --footer-bg: #0a0a0a;
    --filter-btn-bg: #1e1e1e;
    --filter-btn-color: #e0e0e0;
    --book-tag-bg: #2c3e50;
    --book-tag-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
}

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

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.3rem;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-spacing) 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 0.4rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 1.4rem;
}

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

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

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

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

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

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

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: 1.5rem 0;
    transition: all var(--transition-fast);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
}

.logo-text {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 3rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-fast);
}

.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: var(--primary-color);
    margin: 0.5rem 0;
    transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 8rem;
}

.hero h1 {
    color: white;
    font-size: 5.6rem;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    max-width: 70rem;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.5s;
    animation-fill-mode: both;
}

.hero-stats .stat-item {
    text-align: center;
    position: relative;
}

.hero-stats .stat-item:not(:last-child):after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    height: 3rem;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-stats .stat-item span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.author-image {
    border-radius: 0.8rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 2;
}

.about-intro {
    margin-bottom: 2rem;
}

.about-greeting {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.about-greeting:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.6rem;
}

.about-quote {
    margin: 3rem 0;
    padding: 2rem;
    background-color: rgba(52, 152, 219, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
    position: relative;
}

.about-quote i {
    position: absolute;
    top: -1.5rem;
    left: -1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.about-quote blockquote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
    padding: 0;
    border: none;
}

.about-social-links {
    margin-top: 2rem;
    justify-content: flex-start;
}

/* ===== BOOKS SECTION ===== */

.books-intro {
    margin-bottom: 4rem;
    text-align: center;
}

.books-tagline {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--text-color);
}

.highlight-stat {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.highlight-stat:after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    background-color: rgba(52, 152, 219, 0.05);
    padding: 1rem 2rem;
    border-radius: 5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.trust-badge i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.trust-badge span {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Dark mode styles for trust badges */
[data-theme="dark"] .trust-badge {
    background-color: rgba(52, 152, 219, 0.1);
}

[data-theme="dark"] .trust-badge span {
    color: var(--light-text);
}

/* Best Sellers Slider Styles */
.bestsellers-section {
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.bestsellers-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.bestsellers-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
    padding: 0 2rem;
}

.bestsellers-title i {
    color: #FFD700;
    margin: 0 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.bestsellers-subtitle {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 1rem;
}

.bestsellers-refresh {
    font-size: 1.3rem;
    color: var(--text-color-light);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.bestsellers-refresh i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    animation: spin 4s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bestsellers-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 -2rem;
}

.bestsellers-slider {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.bestsellers-track {
    display: flex;
    transition: transform 0.5s ease;
}

.bestseller-item {
    flex: 0 0 calc(25% - 4rem);
    min-width: calc(25% - 4rem);
    margin: 0 2rem;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    padding: 2rem;
}

.bestseller-item:hover {
    transform: translateY(-1rem);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.15);
}

.bestseller-badge {
    position: absolute;
    top: 1.5rem;
    right: -4rem;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: white;
    padding: 0.5rem 5rem;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.bestseller-content {
    position: relative;
    padding: 0;
}

.bestseller-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.bestseller-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--text-color);
}

.bestseller-description {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bestseller-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.bestseller-rating {
    display: flex;
    align-items: center;
}

.bestseller-rating i {
    color: #FFD700;
    margin-right: 0.5rem;
}

.slider-arrow {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.slider-prev {
    margin-right: 1rem;
}

.slider-next {
    margin-left: 1rem;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.slider-dots {
    display: flex;
    gap: 1rem;
}

.slider-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Dark mode styles for bestsellers */
[data-theme="dark"] .bestseller-item {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .bestseller-title,
[data-theme="dark"] .bestseller-description {
    color: var(--light-text);
}

[data-theme="dark"] .slider-arrow {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

[data-theme="dark"] .slider-arrow:hover {
    background-color: var(--primary-color);
    color: white;
}

.book-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: var(--filter-btn-bg);
    border: 2px solid var(--border-color);
    padding: 0.8rem 1.6rem;
    border-radius: 3rem;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 1.4rem;
    color: var(--filter-btn-color);
    transition: all var(--transition-fast);
}

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

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 4rem;
}

.book-card {
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 2rem var(--shadow-color);
    transition: transform var(--transition-medium);
    background-color: var(--card-bg);
    padding-top: 1rem;
}

.book-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 1rem 3rem var(--shadow-hover);
}

.book-details {
    padding: 2rem;
}

.book-details h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.book-tags span {
    background-color: var(--book-tag-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    color: var(--book-tag-color);
}

.book-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.book-links .btn {
    flex: 1;
}

/* Book Share Buttons */
.book-share {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-label {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-right: 0.5rem;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.share-facebook {
    background-color: #3b5998;
}

.share-twitter {
    background-color: #1da1f2;
}

.share-linkedin {
    background-color: #0077b5;
}

.share-pinterest {
    background-color: #bd081c;
}

.share-whatsapp {
    background-color: #25d366;
}

.share-telegram {
    background-color: #0088cc;
}

.share-email {
    background-color: #848484;
}

.share-copy {
    background-color: #2c3e50;
}

/* Copy success animation */
@keyframes copySuccess {
    0% { background-color: #2c3e50; }
    50% { background-color: #27ae60; }
    100% { background-color: #2c3e50; }
}

.copy-success {
    animation: copySuccess 1.5s ease;
}

/* Dark mode styles for share buttons */
[data-theme="dark"] .share-label {
    color: var(--light-text);
}

/* Responsive styles for share buttons */
@media screen and (max-width: 576px) {
    .book-share {
        justify-content: center;
    }

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

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.4rem;
    font-family: var(--body-font);
    font-size: 1.6rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 2rem;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-0.5rem);
}

.contact-details {
    margin-top: 3rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-details i {
    margin-right: 1rem;
    color: var(--primary-color);
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    color: white;
    font-size: 2.4rem;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

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

.footer-translate {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

/* Footer Datetime Styles */
.footer-datetime {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.footer-datetime:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
}

.footer-clock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    margin-right: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-clock-icon i {
    color: white;
    font-size: 1.2rem;
}

#footer-current-datetime {
    font-weight: 500;
    color: white;
    font-size: 1.2rem;
    white-space: nowrap;
}

.footer-social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 0.5rem;
}

.footer-social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-0.5rem);
}

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

/* ===== THEME TOGGLE ===== */
/* Datetime Display Styles */
.datetime-display {
    display: flex;
    align-items: center;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 2rem;
    padding: 0.5rem 1.2rem;
    margin-right: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-color);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.datetime-display:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.clock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-right: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.clock-icon i {
    color: white;
    font-size: 1.2rem;
}

#current-datetime {
    font-weight: 500;
    white-space: nowrap;
}

/* Dark mode styles */
[data-theme="dark"] .datetime-display {
    background-color: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    color: var(--light-text);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.translate-container {
    display: flex;
    align-items: center;
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
}

/* Translate Dropdown */
.translate-dropdown {
    position: relative;
    display: inline-block;
}

.translate-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.translate-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--light-bg);
}

.translate-btn i {
    color: var(--primary-color);
}

.translate-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--bg-color);
    min-width: 20rem;
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 0.8rem;
    overflow: hidden;
    max-height: 40rem;
    overflow-y: auto;
}

.translate-dropdown:hover .translate-dropdown-content {
    display: block;
}

.translate-dropdown-content a {
    color: var(--text-color);
    padding: 1.2rem 1.6rem;
    text-decoration: none;
    display: block;
    font-size: 1.4rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.translate-dropdown-content a:last-child {
    border-bottom: none;
}

.translate-dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

.translate-dropdown-content a.active {
    background-color: var(--primary-color);
    color: white;
}

/* Dark mode styles */
[data-theme="dark"] .translate-btn {
    background-color: var(--dark-bg);
    color: var(--light-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .translate-dropdown-content {
    background-color: var(--dark-bg);
}

[data-theme="dark"] .translate-dropdown-content a {
    color: var(--light-text);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .translate-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Footer language selector */
.footer-language-selector {
    color: white;
    display: flex;
    align-items: center;
}

.translate-label {
    margin-right: 1rem;
    font-size: 1.4rem;
    color: white;
}

.footer-translate-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-translate-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-translate-btn i {
    color: white;
}

.footer-dropdown-content {
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

#theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    background-color: var(--light-bg);
}

#theme-toggle-btn:hover {
    background-color: var(--border-color);
}

#theme-toggle-btn i {
    font-size: 1.8rem;
    position: absolute;
    transition: all var(--transition-fast);
}

#theme-toggle-btn .fa-sun {
    opacity: 1;
    transform: translateY(0);
    color: #f39c12;
}

#theme-toggle-btn .fa-moon {
    opacity: 0;
    transform: translateY(20px);
    color: #3498db;
}

/* Dark mode active state */
[data-theme="dark"] #theme-toggle-btn .fa-sun {
    opacity: 0;
    transform: translateY(-20px);
}

[data-theme="dark"] #theme-toggle-btn .fa-moon {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] #theme-toggle-btn {
    background-color: #2c3e50;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 992px) {
    html {
        font-size: 56.25%; /* 9px = 1rem */
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 50%; /* 8px = 1rem */
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Datetime display responsive styles */
    .datetime-display {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }

    .clock-icon {
        width: 2rem;
        height: 2rem;
    }

    .footer-datetime {
        padding: 0.4rem 1rem;
    }

    /* Bestsellers slider responsive styles */
    .bestseller-item {
        flex: 0 0 calc(50% - 4rem);
        min-width: calc(50% - 4rem);
    }

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

    .bestsellers-subtitle {
        font-size: 1.4rem;
    }

    /* Trust badges responsive styles */
    .books-tagline {
        font-size: 1.8rem;
    }

    .trust-badges {
        gap: 1.5rem;
    }

    .trust-badge {
        padding: 0.8rem 1.5rem;
    }

    .trust-badge i {
        font-size: 1.8rem;
    }

    .trust-badge span {
        font-size: 1.3rem;
    }

    .main-nav {
        position: fixed;
        top: 7rem;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 2rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform var(--transition-medium);
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .books-grid {
        grid-template-columns: 1fr;
    }

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

    /* Bestsellers slider responsive styles for small screens */
    .bestseller-item {
        flex: 0 0 calc(100% - 4rem);
        min-width: calc(100% - 4rem);
        padding: 1.5rem;
    }

    .bestsellers-title {
        font-size: 2.2rem;
    }

    .bestsellers-title i {
        margin: 0 0.5rem;
    }

    .slider-arrow {
        width: 4rem;
        height: 4rem;
    }

    .bestseller-title {
        font-size: 1.6rem;
    }

    .bestseller-description {
        font-size: 1.3rem;
        -webkit-line-clamp: 2;
    }

    /* Trust badges responsive styles for small screens */
    .books-tagline {
        font-size: 1.6rem;
    }

    .trust-badges {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .trust-badge {
        width: 100%;
        max-width: 30rem;
        justify-content: center;
    }
}
