/* Custom styles for Il Rifugio Sospeso */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1814;
}

::-webkit-scrollbar-thumb {
    background: #c9a96e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b87a;
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Amazon button hover effect */
.amazon-btn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.amazon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* Hero scroll indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Card hover effects */
.story-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.story-card img {
    transition: transform 0.6s ease;
}

.story-card:hover img {
    transform: scale(1.05);
}

/* Theme tag pills */
.theme-tag {
    transition: all 0.2s ease;
}

.theme-tag:hover {
    background: rgba(201, 169, 110, 0.3);
    transform: scale(1.05);
}

/* Social share buttons */
.social-btn {
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

/* Reading progress indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #c9a96e, #c9b8a0);
    z-index: 100;
    transition: width 0.1s ease;
}

/* Quote styling */
.quote-box {
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #c9a96e;
}

/* Back to home button */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #c9b8a0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateX(-4px);
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a96e;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
