/* Custom styles for Somas Universe */

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

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

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

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

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

/* Selection color */
::selection {
    background-color: #F2D06B;
    color: #1C1311;
}

/* Focus styles */
*:focus {
    outline: 2px solid #F2D06B;
    outline-offset: 2px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Focus visible for keyboard users */
*:focus-visible {
    outline: 2px solid #F2D06B;
    outline-offset: 2px;
}

/* Animation for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #F2D06B 0%, #C24D2F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===========================
   CSS Grid & Hover Effects
   =========================== */

/* Song Cards Horizontal Slider */
.song-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    margin: 0 auto;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.song-grid::-webkit-scrollbar {
    display: none;
}

/* Song card fixed width */
.song-grid .song-card {
    flex: 0 0 40vw;
    max-width: 480px;
    margin-right: 3rem;
}

/* Song Card */
.song-card {
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Song Card Image Container */
.song-card-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Song Card Image */
.song-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.song-card:hover .song-card-img {
    filter: blur(10px) brightness(0.4);
}

/* Song Card Overlay Content */
.song-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.song-card:hover .song-card-overlay {
    opacity: 1;
}

/* Song Card Description in Overlay */
.song-card-overlay .song-card-desc {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: center;
    max-height: 70%;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 20px;
}

/* Anhören button in overlay */
.song-card-overlay .song-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #F2D06B;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 25px;
    border: 1px solid #d4af37;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    text-decoration: none;
}

.song-card-overlay .song-card-link:hover {
    background: #d4af37;
    color: #1C1311;
}

.song-card-overlay .song-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.song-card-overlay .song-card-link:hover::after {
    transform: translateX(4px);
}

/* Custom scrollbar for overlay text */
.song-card-overlay .song-card-desc::-webkit-scrollbar {
    width: 4px;
}

.song-card-overlay .song-card-desc::-webkit-scrollbar-track {
    background: transparent;
}

.song-card-overlay .song-card-desc::-webkit-scrollbar-thumb {
    background: #F2D06B;
    border-radius: 2px;
}

/* Bottom bar (permanent) */
.song-card-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: rgba(28, 19, 17, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Song Card Title */
.song-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F2D06B;
    transition: color 0.3s ease;
    margin: 0;
}

.song-card:hover .song-card-bottom .song-card-title {
    color: #F2D06B; /* Keep gold even on hover */
}

/* Song Card Link */
.song-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #F2D06B;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.song-card-link:hover {
    color: #C24D2F;
    transform: translateX(4px);
}

.song-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.song-card:hover .song-card-link::after {
    transform: translateX(4px);
}

/* ===========================
   Video Cards Gallery (same as Song Cards)
   =========================== */

/* Video Grid — horizontal scroll, same as song-grid */
.video-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    margin: 0 auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-grid::-webkit-scrollbar {
    display: none;
}

/* Video card fixed width — same as song cards */
.video-grid .video-card {
    flex: 0 0 40vw;
    max-width: 480px;
    margin-right: 3rem;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

/* Video Image Container — 1:1 like song cards */
.video-card-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem;
}

.video-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.video-card:hover .video-card-img-container img {
    filter: blur(10px) brightness(0.4);
}

/* Video Overlay — same as song overlay */
.video-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-card:hover .video-card-overlay {
    opacity: 1;
}

.video-card-overlay .video-card-desc {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: center;
    max-height: 70%;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 20px;
}

.video-card-overlay .video-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #F2D06B;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 25px;
    border: 1px solid #d4af37;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 2rem;
    text-decoration: none;
}

.video-card-overlay .video-card-link:hover {
    background: #d4af37;
    color: #1C1311;
}

.video-card-overlay .video-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.video-card-overlay .video-card-link:hover::after {
    transform: translateX(4px);
}

/* Custom scrollbar for video overlay text */
.video-card-overlay .video-card-desc::-webkit-scrollbar {
    width: 4px;
}

.video-card-overlay .video-card-desc::-webkit-scrollbar-track {
    background: transparent;
}

.video-card-overlay .video-card-desc::-webkit-scrollbar-thumb {
    background: #F2D06B;
    border-radius: 2px;
}

/* Video Bottom Bar — same as song bottom */
.video-card-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: rgba(28, 19, 17, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0 0 0.75rem 0.75rem;
}

.video-card-bottom .video-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #F2D06B;
    transition: color 0.3s ease;
    margin: 0;
}

.video-card:hover .video-card-bottom .video-card-title {
    color: #F2D06B;
}

/* ===========================
   CTA Button Hover
   =========================== */

.btn-gold-hover {
    position: relative;
    overflow: hidden;
}

.btn-gold-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-gold-hover:hover::before {
    left: 100%;
}
