/*
Theme Name: Dasolkim
Theme URI: https://dasolkim.com
Author: Dasol Kim
Description: Custom minimalist theme for pianist Dasol Kim's portfolio website
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dasolkim
*/

/* Import Font Awesome for Social Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1em;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e0c38a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tenor Sans', Georgia, serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
}

h3 {
    font-size: 1.4em;
}

p {
    margin-bottom: 1.5em;
}

/* ============================================
   HOMEPAGE - HERO SECTION
   ============================================ */

.home-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('http://dasolkim.de/wp-content/uploads/2023/08/Dasol-Kim_H.TALINSKI_1920-D_16-9.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

body.home {
    height: 100vh;
    overflow: hidden;
}

/* ============================================
   HEADER - TOP LEFT & RIGHT
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;  /* Vertikal zentriert - viel besser! */
    z-index: 1000;
}

.home .site-header {
    color: #fff;
}

.site-branding a {
    font-family: 'Tenor Sans', Georgia, serif;
    font-size: 2.2em;
    font-weight: 400;
    color: inherit;
}

.site-branding a:hover {
    color: #e0c38a;
}

/* ============================================
   NAVIGATION - TOP RIGHT
   ============================================ */

.main-navigation {
    display: flex;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 1em;
    color: inherit;
    position: relative;
    text-decoration: none;
}

.main-navigation a:hover {
    color: #e0c38a;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid currentColor;
    color: inherit;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #e0c38a;
    border-color: #e0c38a;
}

/* ============================================
   FOOTER - BOTTOM LEFT & RIGHT
   ============================================ */

.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 1000;
}

.home .site-footer {
    color: #fff;
}

.site-info {
    font-size: 0.75em;
    line-height: 1.4;
}

/* ============================================
   SOCIAL NAVIGATION - BOTTOM RIGHT
   ============================================ */

.social-navigation {
    display: flex;
    gap: 1rem;
}

.social-navigation ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-navigation a {
    font-size: 1.5rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.social-navigation a:hover {
    color: #e0c38a;
}

/* Hide link text, show only icons */
.social-navigation .menu-item a {
    overflow: hidden;
    text-indent: -9999px;
    width: 24px;
    height: 24px;
    position: relative;
}

/* Social Icons using Font Awesome */
.social-navigation a[href*="facebook.com"]::before,
.social-navigation a[href*="instagram.com"]::before,
.social-navigation a[href*="spotify.com"]::before,
.social-navigation a[href*="youtube.com"]::before {
    position: absolute;
    left: 0;
    top: 0;
    text-indent: 0;
    font-family: 'Font Awesome 6 Brands';
    font-size: 24px;
    line-height: 24px;
}

.social-navigation a[href*="facebook.com"]::before {
    content: "\f39e";
}

.social-navigation a[href*="instagram.com"]::before {
    content: "\f16d";
}

.social-navigation a[href*="spotify.com"]::before {
    content: "\f1bc";
}

.social-navigation a[href*="youtube.com"]::before {
    content: "\f167";
}

/* ============================================
   INNER PAGES LAYOUT
   ============================================ */

body:not(.home) {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

body:not(.home) .site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333;
}

body:not(.home) .site-footer {
    background: transparent;
    position: relative;
    color: #333;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   PAGE TITLE
   ============================================ */

.page-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5em;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* ============================================
   CONCERTS PAGE - CUSTOM STYLES (ALT - auskommentiert)
   ============================================ */
/*
.events {
    font-size: 1em;
    line-height: 1.5em;
    margin-bottom: 2rem;
}

.events h3 {
    font-size: 1.2em;
    margin-bottom: 0.5rem;
}

.works {
    position: relative;
    font-size: 1em;
    line-height: 1.5em;
    border-left: 0.15em solid #e0c38a;
    padding-left: 1.3em;
    margin-left: 1.3em;
    margin-bottom: 2.5em;
    font-style: italic;
}
*/

/* ============================================
   CONCERTS PAGE - REFINED MINIMAL VERSION
   ============================================ */

/* Individual Event Container */
.event-item {
    margin-bottom: 4rem;
}

.event-item:last-child {
    margin-bottom: 0;
}

/* Date */
.event-date {
    font-family: 'Tenor Sans', Georgia, serif;
    font-size: 0.85em;
    font-weight: 400;
    color: #e0c38a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* Event Name */
.event-name {
    font-family: 'Tenor Sans', Georgia, serif;
    font-size: 1.5em;
    font-weight: 400;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* External Links (Website, Facebook icons) */
.event-link {
    display: inline-block;
    margin-left: 0.5rem;
    color: #ccc;
    font-size: 0.9em;
    transition: color 0.3s ease;
    text-decoration: none;
}

.event-link:hover {
    color: #e0c38a;
}

/* Event Details (Venue & Location wrapper) */
.event-details {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.event-venue {
    margin-bottom: 0.1rem;
}

/* Orchestra/Conductor Info */
.event-with {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1rem;
    font-style: italic;
}

/* Program Section - Clean, no label */
.event-program {
    font-size: 0.95em;
    line-height: 1.7em;
    border-left: 2px solid #e0c38a;
    padding-left: 1.5em;
    margin-top: 0;
    font-style: italic;
    color: #666;
}

/* Individual pieces in program */
.event-program p {
    margin-bottom: 0.5em;
}

.event-program p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE - CONCERTS
   ============================================ */

@media screen and (max-width: 768px) {
    .event-item {
        margin-bottom: 3rem;
    }

    .event-name {
        font-size: 1.3em;
    }

    .event-program {
        padding-left: 1.2em;
    }
}

/* ============================================
   DISCOGRAPHY PAGE - SAFARI-FIX
   ============================================ */

.discography-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin: 3rem 0;
}

.album {
    text-align: left;
    background: transparent;
}

.album-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}

.album-cover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.album-cover a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
    margin: 0;
    padding: 0;
}

/* Overlay - Safari-kompatibel */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3em;
    font-family: 'Tenor Sans', Georgia, serif;
    letter-spacing: 0.05em;
    opacity: 0;
    -webkit-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
    z-index: 10;
}

/* WICHTIG: Safari braucht beide Hover-Varianten */
.album-cover:hover .album-overlay,
.album-cover a:hover .album-overlay {
    opacity: 1;
}

.album-title {
    font-family: 'Tenor Sans', Georgia, serif;
    font-size: 1.3em;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: #333;
}

.album-meta {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0;
}

.album-meta .year,
.album-meta .label {
    white-space: nowrap;
}

.album-meta .separator {
    color: #e0c38a;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.album-program {
    font-size: 0.9em;
    color: #777;
    line-height: 1.6;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .discography-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 400px;
        margin: 2rem auto;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media screen and (max-width: 768px) {
    .site-header,
    .site-footer {
        padding: 1.5rem;
    }
    
    .site-branding a {
        font-size: 1.8em;
    }
    
    .main-navigation {
        gap: 1.5rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (ANGEPASST)
   ============================================ */

@media screen and (max-width: 900px) {  /* ERHÖHT von 560px auf 900px */
    /* Show mobile menu toggle */
    .menu-toggle {
        display: block;
    }
    
    /* Hide desktop navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation.toggled {
        left: 0;
    }
    
    .main-navigation a {
        font-size: 1.2em;
        color: #fff;
    }
    
    .home .menu-toggle {
        color: #fff;
        border-color: #fff;
    }
    
    body:not(.home) .menu-toggle {
        color: #333;
        border-color: #333;
    }
    
    /* Adjust header spacing */
    .site-header {
        padding: 1rem;
    }
    
    .site-branding a {
        font-size: 1.5em;
    }
    
    /* Footer adjustments */
    .site-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    
    .social-navigation {
        order: -1;
    }
    
    /* Hide footer navigation on mobile */
    .site-footer .main-navigation {
        display: none;
    }
    
    /* Content adjustments */
    body:not(.home) {
        padding-top: 5rem;
    }
    
    .site-content {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 2em;
    }
}

/* ============================================
   PREVENT TEXT JUMPING ON RESIZE
   ============================================ */

/* Ensure elements don't wrap or shift */
.site-branding,
.main-navigation,
.site-info,
.social-navigation {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Allow natural wrapping for copyright on very small screens */
.site-info {
    white-space: normal;
    min-width: 150px;
}

/* Prevent menu items from wrapping until mobile breakpoint */
.main-navigation ul {
    flex-wrap: nowrap;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}