body {
    font-family: 'Noto Sans Georgian', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.search-container {
    transition: all 0.3s ease;
}

.search-container:focus-within {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #3939FF;
}

.book-card {
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.book-card.show {
    transform: translateY(0);
    opacity: 1;
}

.text-light-logo {
    color: #3939FF; /* Your existing light mode color */
}

/* Dark mode logo color */
.dark .text-light-logo {
    color: #ffffff; /* White color for dark mode */
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
}

#language-select {
    width: 155px;
}

/* Adjust line height for headers */
h1, h3, h4 {
    line-height: 1.3;
}
/* Loader Styles */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.store-stat {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.clicked-books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.clicked-book {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Update the language selector */
.language-selector select {
    display: none;
}

.language-selector .flag {
    display: inline-block;
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;
}

.language-selector .language-text {
    display: inline-block;
    font-size: 16px;
    font-weight: bold;
}

#language-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

@media (max-width: 640px) {
    #language-select {
        width: 60px;
        min-width: unset;
        padding: 0.5rem;
        padding-right: 1.5rem;
    }
}


/* Add these styles to your existing <style> section */
#scroll-button {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#scroll-button.show {
    opacity: 1;
    visibility: visible;
}


/* Add to your existing styles */
#intro-text {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
    z-index: 10;
}



#intro-text .feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#intro-text .feature-icon svg {
    width: 36px;
    height: 36px;
    margin-bottom: 0.5rem;
}

/* In your CSS (styles.css) file: */

#suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 1rem); /* Adjust width slightly */
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    border: 1px solid #e2e8f0;  /* Light border */
    border-radius: 0.5rem;     /* Rounded corners */
    background-color: white;
    margin-top: 0.25rem;      /* Small gap between input and suggestions */
    margin-left: 0.5rem;
    z-index: 200;
}

.suggestion-item { /* Style the suggestion items using a class */
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
    transition: background-color 0.2s ease;
    white-space: nowrap;      /* Prevent wrapping within suggestions */
    overflow: hidden;          /* Hide any overflow */
    text-overflow: ellipsis;
    z-index: 200;
}

.suggestion-item:hover {
    background-color: #e2e8f0;
    color: #111827;
}

.suggestion-item:last-child {
    border-bottom: none;
}

#facebook-container {
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    will-change: transform, opacity;
}

@media (max-width: 640px) {
    #facebook-container {
        width: calc(100% - 2rem);
        right: 1rem;
        bottom: 1rem;
    }
}

/* Add these new styles */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .book-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .book-item {
        padding: 0.5rem;
    }

    .book-title {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .book-author, .book-price {
        font-size: 0.75rem;
        line-height: 1rem;
    }
}

/* Auth Modal Styles */
#login-modal,
#register-modal {
    backdrop-filter: blur(4px);
}

/* Form input focus styles */
.form-input:focus {
    outline: none;
    border-color: #3939FF;
    box-shadow: 0 0 0 2px rgba(57, 57, 255, 0.2);
}

/* Auth menu transition */
#auth-menu {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform-origin: top right;
}

#auth-menu.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Account icon transition */
.account-icon {
    transition: color 0.3s ease;
}

/* Load More Button Animation */
#load-more-button {
    position: relative;
    overflow: hidden;
}

#load-more-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

#load-more-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Loader inside button */
#load-more-button .loader {
    margin-left: 0;
    margin-right: 0;
    width: 20px;
    height: 20px;
    border-width: 3px;
}

/* Refined random books button styles */
#random-books-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

#random-books-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#random-books-btn svg {
    transition: transform 0.5s ease;
}

#random-books-btn:hover svg {
    transform: rotate(180deg);
}

#random-books-btn:active {
    transform: scale(0.97);
}

/* Add a subtle entrance animation */
@keyframes slide-in {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

#random-books-btn {
    animation: slide-in 0.5s ease-out forwards;
}