/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #b8b8b8;
    min-height: 100vh;
}

/* Utility */
.is-hidden { display: none !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #4a9d4a;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase; /* uppercase menu items */
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #000;
}

.hero-social {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.hero-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 50%;
    color: #4a9d4a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-social-link:hover {
    color: #3a7a3a;
    transform: translateY(-3px) scale(1.1);
}

.hero-social-link svg {
    width: 28px;
    height: 28px;
}

/* Sections */
.section {
    padding: 3rem 0;
    display: flex;
    align-items: center;
}

/* Ensure Videos section isn't a flex container so content stacks correctly */
#videot {
    display: block;
}

/* Center the videos wrapper within the page width */
#videot .videos {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Make Keikat width match Julkaisut */
#keikat { display: block; }
#keikat .container { width: 100%; }
#keikat .shows { width: 100%; max-width: 1000px; margin: 0 auto; }

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
    font-weight: 300;
}

/* Releases */
.releases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.release {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.release:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.release-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.release-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.release-type {
    color: #666;
    margin-bottom: 1rem;
    font-style: italic;
}

.release-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.release-links a {
    color: #4a9d4a;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #4a9d4a;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.release-links a:hover {
    background: #4a9d4a;
    color: white;
    transform: translateY(-2px);
}

/* Shows */
.shows {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 8px; /* match Julkaisut card corners */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* subtle like releases */
}

.show {
    display: flex;
    background: white;
    border-bottom: 1px solid #ddd;
    transition: none;
    align-items: center;
    padding: 0;
}

.show:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px; /* round bottom corners of last item */
    border-bottom-right-radius: 8px;
}

.show:hover {
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
}

.show-date {
    background: #4a9d4a;
    color: black; /* date text black */
    padding: 1.5rem 1rem;
    text-align: center;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: bold;
}

.show-month {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.show-day {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.show-year {
    font-size: 0.8rem;
    font-weight: bold;
}

.show-details {
    padding: 1.5rem 2rem;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.show-info {
    display: flex;
    flex-direction: column;
}

.show-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.show-location {
    color: #666;
    font-size: 1rem;
}

.show-button {
    background: #e5e5e5;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.show-button:hover {
    background: #d0d0d0;
    text-decoration: none;
}

/* Show More Button */
.show-more-container {
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.show-more-button {
    background: #4a9d4a;
    color: black; /* buttons text black */
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.show-more-button:hover {
    background: #3a7a3a;
    color: black;
    transform: translateY(-1px);
}

.show-more-button:active {
    transform: translateY(0);
}

/* Videos */
.videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* desktop: 3 per row */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Tablet: 2 per row */
@media (max-width: 1024px) {
    .videos { grid-template-columns: repeat(2, 1fr); }
}

.video-item {
    text-align: center;
}

.video-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-container:hover {
    transform: scale(1.02);
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-play-button:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .videos {
    display: grid;
    grid-template-columns: 1fr; /* mobile: single column */
    gap: 1.25rem;
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    }

    .video-item {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .video-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .video-container { width: 100%; max-width: none; margin: 0; }
}

@media (max-width: 480px) {
    .show { flex-direction: row; align-items: stretch; }
    /* full width with responsive 16:9 height on mobile */
    .show-date {
        min-width: 84px; /* fixed left column */
        padding: 0.5rem; /* tighter */
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

}

/* Contact */
.contact-section {
    background: #b8b8b8;
    color: #333;
    padding: 2rem 0;
}

.contact-section .section-title {
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
.contact-info a:visited { color: #333; }

.contact-info p {
    font-size: 1.2rem;
    margin: 0;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #4a9d4a;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: black;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-links a:hover {
    color: #333;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #4a9d4a;
    color: black;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Footer link and icon colors should remain black (no blue visited) */
.footer a { color: black; text-decoration: none; }
.footer a:visited { color: black; }
.footer a:hover { color: #333; text-decoration: none; }

.footer .social-links {
    justify-content: center;
    gap: 1.25rem;
    margin: 0rem 0 0rem; /* tighter space above and below icons */
}
/* Use hero-style circular transparent buttons, but icons black */
.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    color: black;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer .social-links a:visited { color: black; }
.footer .social-links a:hover { color: #333; transform: translateY(-3px) scale(1.1); background: transparent; }
.footer .social-links svg { display: block; width: 28px; height: 28px; }

/* Footer social links container (Facebook, YouTube, Spotify) */
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.25rem; /* reduce gap between icons and logo */
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: black;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #333;
    transform: translateY(-3px) scale(1.1);
}

.footer-social svg,
.footer-social img {
    width: 24px;
    height: 24px;
    display: block;
}

.piki-logo {
    height: 60px;
    width: auto;
    margin: 0.25rem 0 0.15rem; /* reduce gap between icons and logo */
}

.footer p {
    font-size: 0.85rem; /* smaller copyright text */
    margin: 0.15rem 0 0;
    color: black;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-social {
        gap: 1.5rem;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-social-link {
        width: 50px;
        height: 50px;
    }

    .hero-social-link svg {
        width: 24px;
        height: 24px;
    }

    .releases {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .release {
        flex-direction: column;
        text-align: center;
    }
    /* Ensure hero social link color on mobile */
    .hero-social a,
    .hero-social a:visited { color: #4a9d4a; text-decoration: none; }

    .release-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .show {
        flex-direction: column;
    }

    .show-date {
        min-width: auto;
        padding: 0.75rem;
        text-align: center;
        color: black; /* keep black text on small screens */
    }

    .show-month {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
    }

    .show-day {
        font-size: 1.6rem;
        margin-bottom: 0.15rem;
    }

    .show-year {
        font-size: 0.7rem;
    }

    .show-details {
        padding: 0.75rem; /* compact */
        flex-direction: column;
        gap: 0.5rem;
        text-align: left; /* align text to left next to date */
        align-items: flex-start;
    }

    .show-name {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }

    .show-location {
        font-size: 0.9rem;
    }

    .show-button {
        align-self: flex-start;
        margin-top: 0.25rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        padding: 0.75rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 1.5rem 0;
    }

    /* Compact navigation for very small screens */
    .navbar { padding: 0.5rem 0; }
    .nav-container { gap: 0.5rem; }
    .logo { height: 32px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.5rem; }
    .nav-link { padding: 0.3rem 0.5rem; font-size: 0.75rem; }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .release {
        padding: 1.25rem;
    }

    .releases {
        gap: 1.5rem;
    }

    .hero-social {
        gap: 1rem;
        top: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero-social-link {
        width: 45px;
        height: 45px;
    }

    .hero-social-link svg {
        width: 20px;
        height: 20px;
    }

    .show-date {
        padding: 0.5rem;
        color: black; /* keep black text on extra small screens */
    }

    .show-month, .show-year {
        font-size: 0.65rem;
    }

    .show-day {
        font-size: 1.4rem;
    }

    .show-details { padding: 0.5rem; gap: 0.4rem; }

    .show-name {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .show-location {
        font-size: 0.85rem;
    }

    .show-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Ensure Keikat mobile layout keeps date box on the left */
@media (max-width: 600px) {
    .shows { overflow: hidden; }
    .show { flex-direction: row; align-items: stretch; }
    .show-date {
        min-width: 84px;
        padding: 0.5rem;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-align: center;
    }
    .show-details { flex: 1; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; text-align: left; }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Bandcamp logo spinning animation */
.hero-social-link img[src*="Bandcamp_logo"] {
    animation: spin 3s linear infinite;
}

/* Bio */
.bio-content {
    max-width: 1000px; /* match Julkaisut/Keikat width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.bio-content p { font-size: 1.05rem; }

.bio-members {
    list-style: none;
    padding: 0;
}

.bio-members li { margin: 0.25rem 0; }

.bio-quote {
    margin: 0.75rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid #4a9d4a;
    font-style: italic;
}

/* --- Mobile Video Width Fix (minimal and isolated) --- */
@media (max-width: 480px) {
    /* Make #videot section not use the global flex layout */
    #videot {
        display: block !important;
    }

    /* Remove side padding and ensure full width for the videos section only */
    #videot > .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #videot .videos {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    #videot .video-item {
        width: 100% !important;
    }

    /* Make each video visually larger on mobile */
    #videot .video-container {
        height: 340px !important;   /* bigger than 16:9 padding version */
        padding-bottom: 0 !important; /* disable aspect-ratio padding */
        width: 100% !important;
    }
}
