/* Custom Styles for Bašta puna svjetlosti */

:root {
    --bps-primary: #2c5f2d;
    --bps-secondary: #97c680;
    --bps-accent: #ffd166;
    --bps-dark: #1a1a1a;
    --bps-light: #f8f9fa;
}

/* Body Background */
body {
    background-color: #e8e8e8;
    background-image: url('/media/images/denne.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Styling */
section {
    scroll-margin-top: 65px;
}

.section-padding {
    padding: 50px 0;
}

/* Content container background */
.section-padding .container {
    background-color: rgba(240, 240, 240, 0.88);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bps-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--bps-secondary);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Videos Page Title and Subtitle */
.videos-page-title {
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.videos-page-subtitle {
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Music Page Title and Subtitle */
.music-page-title {
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.music-page-subtitle {
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Gallery Page Title and Subtitle */
.gallery-page-title {
    color: #f0f0f0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.gallery-page-subtitle {
    color: #e0e0e0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher .btn {
    min-width: 45px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Hero Section */
.home-hero {
    background: 
        linear-gradient(135deg, rgba(93, 173, 226, 0.75) 0%, rgba(123, 199, 164, 0.7) 50%, rgba(143, 214, 184, 0.75) 100%),
        url('/media/images/vineyard-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 70px 20px 40px;
    text-align: center;
    margin-bottom: 0;
    margin-top: -65px;
    box-shadow: 0 6px 20px rgba(93, 173, 226, 0.3);
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 300px 150px at 25% 60%, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(ellipse 350px 180px at 70% 40%, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.hero-content h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.hero-content .lead {
    font-size: 1.25rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 1;
}

/* Story Text Styling */
.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.story-text p {
    margin-bottom: 1.5rem;
}

/* Card Enhancements */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    background-color: rgba(245, 245, 245, 0.92) !important;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* EP Section Styling */
.ep-section {
    margin-bottom: 3rem;
}

.ep-header {
    background: linear-gradient(135deg, var(--bps-primary) 0%, var(--bps-secondary) 100%);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ep-header h2 {
    margin: 0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.ep-header p {
    margin: 0;
    opacity: 0.9;
    font-style: italic;
}

/* Video and Music Cards */
.video-card,
.music-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover,
.music-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
}

.video-card .card-body,
.music-card .card-body {
    background: rgba(240, 240, 240, 0.5);
}

/* Language Badges */
.badge.bg-secondary {
    background-color: var(--bps-primary) !important;
}

.badge.bg-primary {
    background-color: var(--bps-secondary) !important;
    color: var(--bps-dark) !important;
}

/* Audio Player Styling */
audio {
    border-radius: 8px;
    outline: none;
}

audio:focus {
    outline: 2px solid var(--bps-secondary);
}

/* EP Badge on Home Page */
.ep-badge {
    border: 2px solid var(--bps-secondary);
    transition: all 0.3s ease;
    background-color: rgba(245, 245, 245, 0.92) !important;
    backdrop-filter: blur(10px);
}

.ep-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.2) !important;
}

.ep-badge .text-primary {
    color: var(--bps-primary) !important;
}

/* Audio Player Styling */
audio {
    filter: sepia(20%) saturate(70%) hue-rotate(45deg);
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Video Embeds */
.ratio iframe {
    border: none;
}

/* Form Styling */
.form-control:focus {
    border-color: var(--bps-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 45, 0.25);
}

.btn-primary {
    background-color: var(--bps-primary);
    border-color: var(--bps-primary);
}

.btn-primary:hover {
    background-color: #1f4420;
    border-color: #1f4420;
}

/* Alert Styling */
.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #1565c0;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffd166;
    color: #856404;
}

/* Gallery Image Overlay Effect */
.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Lyrics Section Styling */
.lyrics-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.lyrics-toggle {
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lyrics-toggle:hover {
    background-color: var(--bps-primary);
    color: white;
    border-color: var(--bps-primary);
}

.lyrics-toggle i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.lyrics-content {
    animation: slideDown 0.3s ease-out;
    background-color: rgba(240, 240, 240, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lyrics-content .nav-pills .nav-link {
    color: #666;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.lyrics-content .nav-pills .nav-link:hover {
    background-color: rgba(44, 95, 45, 0.1);
    color: var(--bps-primary);
}

.lyrics-content .nav-pills .nav-link.active {
    background-color: var(--bps-primary);
    color: white;
}

.lyrics-text {
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    line-height: 1.8;
    font-size: 0.95rem;
    color: #333;
    white-space: pre-line;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lyrics-text p {
    margin-bottom: 0.5rem;
}

/* Custom scrollbar for lyrics */
.lyrics-text::-webkit-scrollbar {
    width: 8px;
}

.lyrics-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.lyrics-text::-webkit-scrollbar-thumb {
    background: var(--bps-secondary);
    border-radius: 4px;
}

.lyrics-text::-webkit-scrollbar-thumb:hover {
    background: var(--bps-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .home-hero {
        padding: 80px 20px 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: auto;
    }
    
    .hero-content {
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .lyrics-text {
        font-size: 0.9rem;
        max-height: 300px;
    }
}
