/* Custom styles for Twisted Tales */

/* Smooth focus states */
*:focus-visible {
    outline: 2px solid #ff5a3f;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1e1e28;
}
::-webkit-scrollbar-thumb {
    background: #5c5c74;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ff5a3f;
}

/* Selection color */
::selection {
    background: rgba(255, 61, 31, 0.2);
    color: #1e1e28;
}

/* Mobile menu link styles */
.mobile-nav-link {
    position: relative;
    color: #ececf0;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link:hover {
    color: #ff866f;
    padding-left: 8px;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #ff5a3f;
    border-radius: 2px;
    transition: width 0.2s;
}
.mobile-nav-link:hover::before {
    width: 6px;
}

/* Geometric shape animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(35deg); }
    50% { transform: translateY(-20px) rotate(38deg); }
}
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(20deg); }
    50% { transform: translateY(-12px) rotate(23deg); }
}
.hero-geo-3 {
    animation: float 6s ease-in-out infinite;
}
.hero-geo-4 {
    animation: float-slow 8s ease-in-out infinite;
}

/* Book card image hover */
.book-card-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.book-card:hover .book-card-img {
    transform: scale(1.05);
}

/* Navbar background transition */
.nav-inner {
    background: transparent;
}
.nav-scrolled {
    background: rgba(30, 30, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* Feature card icon animation */
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    transition: transform 0.3s;
}
.feature-icon {
    transition: transform 0.3s;
}

/* Event date hover */
.event-card:hover .event-date {
    background: #ff3d1f;
    transition: background 0.3s;
}
.event-card .event-date {
    transition: background 0.3s;
}

/* Form input focus */
.form-input:focus {
    outline: none;
    border-color: #ff5a3f;
    background: rgba(255, 90, 63, 0.08);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .nav-inner, .mobile-menu, #menuOverlay, .cta-section, .book-showcase {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
