/* Custom Styles for StoryBond */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Book card hover effects */
.book-card {
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-5px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #FF8C42;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e67e22;
}

/* Form input focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

/* Button hover effects */
button {
    transition: all 0.3s ease;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero section animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-book-card {
    animation: float 6s ease-in-out infinite;
}

/* Book card hover effects enhancement */
.book-card {
    position: relative;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(155, 89, 182, 0.1));
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.book-card:hover::before {
    opacity: 1;
}

/* FAQ accordion styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-item.active {
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 140, 66, 0.1);
    flex-shrink: 0;
    transform: rotate(0deg);
}

.faq-item.active .faq-icon {
    background-color: rgba(255, 140, 66, 0.2);
}

.faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-answer p {
    margin: 0;
}

/* Print styles */
@media print {
    nav,
    footer,
    button {
        display: none;
    }
}

