/* ==========================================================================
   Anne Mette & Tomas - Static Site CSS
   Optimized for Core Web Vitals
   ========================================================================== */

/* CSS Custom Properties for easy theming */
:root {
    --color-bg: #1a1a1a;
    --color-bg-dark: #000;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.8);
    --color-accent: #e6a756;
    --color-link: #90caf9;
    --color-link-hover: #fff;
    --font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --spacing-unit: 1rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content-contain {
    flex: 1;
}

/* ==========================================================================
   Header & Video Section
   ========================================================================== */

.site-header {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.custom-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.custom-header-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: var(--color-bg-dark);
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.78vh; /* 100vh * 16/9 */
    transform: translate(-50%, -50%);
    border: none;
}

/* Video placeholder for lazy loading */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    cursor: pointer;
}

.video-placeholder.hidden {
    display: none;
}

.play-video-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease;
}

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

.play-video-btn svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Site Branding */
.site-branding {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem var(--spacing-unit) 3rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.site-branding-text {
    margin-bottom: 1.5rem;
}

.site-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    color: var(--color-text);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: clamp(1.1rem, 3vw, 1.75rem);
    font-weight: 300;
    margin: 0.5rem 0 0;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Scroll down arrow */
.menu-scroll-down {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    animation: bounce 2s infinite;
}

.menu-scroll-down:hover {
    opacity: 1;
    transform: translateY(4px);
}

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

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-content {
    padding: 4rem 0;
}

.panel-content {
    padding: 0;
}

.entry-header {
    margin-bottom: 2rem;
    text-align: center;
}

.entry-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0;
    color: var(--color-text);
}

.entry-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Song entries */
.song-entry {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.song-entry:last-of-type {
    border-bottom: none;
}

.song-entry h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--color-accent);
}

.song-entry p {
    margin: 0.4rem 0;
    color: var(--color-text-muted);
}

.pressefoto {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Links */
a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-bg-dark);
    padding: 3rem 0;
    margin-top: auto;
}

.widget-area {
    text-align: center;
}

.widget-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.widget {
    margin: 0;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}

/* Social links */
.social-icons {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Contact widget */
.contact p {
    margin: 0;
}

.contact a {
    font-size: 1rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .site-branding {
        padding: 3rem var(--spacing-unit) 2rem;
    }

    .site-content {
        padding: 2.5rem 0;
    }

    .song-entry {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .site-footer {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    .entry-title {
        font-size: 1.5rem;
    }

    .social-links a {
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .video-container,
    .menu-scroll-down,
    .social-links {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   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;
    }
}
