/* ==========================================================================
   /Alt/Punk — Homepage Custom Styles
   ========================================================================== */

/* --- Manifesto Quote --- */
.altpunk-manifesto h1 {
    font-size: calc(1rem + 2.2vw);
    line-height: calc(1rem + 3.2vw);
    font-weight: 400;
    letter-spacing: -0.02em;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Section Intro with left accent bar --- */
.altpunk-section-intro {
    border-left: 4px solid #ffba00;
    padding-left: 30px;
    margin-bottom: 40px;
}

.altpunk-section-intro h2 {
    font-size: calc(1rem + 1.5vw);
    line-height: calc(1rem + 2vw);
    margin-bottom: 10px;
}

.altpunk-section-intro p {
    font-size: 18px;
    line-height: 30px;
    opacity: 0.7;
    margin: 0;
}

/* --- Text columns content --- */
.altpunk-text-col h3 {
    margin-bottom: 15px;
}

.altpunk-text-col p {
    font-size: 17px;
    line-height: 30px;
    margin-bottom: 16px;
}

.altpunk-text-col p:last-child {
    margin-bottom: 0;
}

/* --- Highlight Box (gold accent) --- */
.altpunk-highlight {
    background: rgba(255, 186, 0, 0.08);
    border: 1px solid rgba(255, 186, 0, 0.25);
    border-radius: 8px;
    padding: 35px 40px;
    margin: 30px 0;
}

.altpunk-highlight p {
    font-size: 18px;
    line-height: 30px;
    margin: 0;
}

.altpunk-highlight strong {
    color: #ffba00;
}

/* --- Timeline --- */
.altpunk-timeline {
    position: relative;
    padding: 0;
}

.altpunk-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 186, 0, 0.5), transparent);
    transform: translateX(-50%);
}

.altpunk-timeline-era {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 60px;
}

.altpunk-timeline-era:last-child {
    margin-bottom: 0;
}

.altpunk-timeline-era:nth-child(even) {
    flex-direction: row-reverse;
}

.altpunk-timeline-date {
    flex: 0 0 calc(50% - 30px);
    text-align: right;
    padding-right: 30px;
}

.altpunk-timeline-era:nth-child(even) .altpunk-timeline-date {
    text-align: left;
    padding-right: 0;
    padding-left: 30px;
}

.altpunk-timeline-date h4 {
    margin-bottom: 0;
    color: #ffba00;
    font-weight: 600;
}

.altpunk-timeline-content {
    flex: 0 0 calc(50% - 30px);
    padding-left: 30px;
}

.altpunk-timeline-era:nth-child(even) .altpunk-timeline-content {
    padding-left: 0;
    padding-right: 30px;
    text-align: right;
}

.altpunk-timeline-content p {
    font-size: 16px;
    line-height: 28px;
    margin: 0;
}

.altpunk-timeline-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 14px;
    height: 14px;
    background: #ffba00;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 186, 0, 0.4);
}

/* --- Genre Cards Grid --- */
.altpunk-genres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.altpunk-genre-card {
    position: relative;
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.altpunk-genre-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.6);
}

.altpunk-genre-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.85);
}

.altpunk-genre-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    pointer-events: none;
}

.altpunk-genre-card-overlay h5 {
    color: #fff;
    margin: 0 0 4px 0;
    font-size: 18px;
    line-height: 22px;
}

.altpunk-genre-card-overlay span {
    color: #ffba00;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Big Quote Block --- */
.altpunk-big-quote {
    position: relative;
    text-align: center;
    padding: 40px 0;
}

.altpunk-big-quote p {
    font-size: calc(1rem + 1vw);
    line-height: calc(1rem + 2vw);
    font-weight: 500;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0.8;
}

.altpunk-big-quote::before {
    content: "\201C";
    font-size: 120px;
    line-height: 1;
    color: #ffba00;
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

/* --- Family Category Label --- */
.altpunk-family-label {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.altpunk-family-label.big { background: rgba(255, 186, 0, 0.15); color: #ffba00; }
.altpunk-family-label.space { background: rgba(100, 150, 255, 0.15); color: #6496ff; }
.altpunk-family-label.extreme { background: rgba(255, 80, 80, 0.15); color: #ff5050; }

/* --- Separator --- */
.altpunk-sep {
    width: 60px;
    height: 3px;
    background: #ffba00;
    margin: 30px 0;
    border: none;
}

.text-align-center .altpunk-sep {
    margin-left: auto;
    margin-right: auto;
}

/* --- Header readability fix on family pages --- */
.dark-content .clapat-header .header-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    pointer-events: none;
}

.dark-content .clapat-header {
    backdrop-filter: none;
}

/* --- Contact Modal --- */
.altpunk-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.altpunk-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.altpunk-modal {
    background: #141414;
    border: 1px solid rgba(255, 186, 0, 0.2);
    border-radius: 16px;
    padding: 50px 60px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s ease;
}

.altpunk-modal-overlay.active .altpunk-modal {
    transform: translateY(0) scale(1);
}

.altpunk-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, background 0.2s;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.altpunk-modal-close:hover {
    opacity: 1;
    background: rgba(255, 80, 80, 0.3);
}

.altpunk-modal-icon {
    margin-bottom: 20px;
}

.altpunk-modal-icon i {
    font-size: 36px;
    color: #ffba00;
}

.altpunk-modal h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.altpunk-modal p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 26px;
    margin: 0 0 24px 0;
}

.altpunk-modal-email {
    display: inline-block;
    font-size: 22px;
    font-weight: 600;
    color: #ffba00;
    text-decoration: none;
    padding: 14px 36px;
    border: 2px solid rgba(255, 186, 0, 0.4);
    border-radius: 50px;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
    letter-spacing: 0.02em;
}

.altpunk-modal-email:hover {
    background: #ffba00;
    color: #0c0c0c;
    border-color: #ffba00;
}

.altpunk-modal-hint {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* --- Responsive --- */
@media only screen and (max-width: 1024px) {
    .altpunk-timeline::before {
        left: 20px;
    }

    .altpunk-timeline-era,
    .altpunk-timeline-era:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
        gap: 10px;
    }

    .altpunk-timeline-date,
    .altpunk-timeline-era:nth-child(even) .altpunk-timeline-date {
        flex: none;
        text-align: left;
        padding: 0;
    }

    .altpunk-timeline-content,
    .altpunk-timeline-era:nth-child(even) .altpunk-timeline-content {
        flex: none;
        padding: 0;
        text-align: left;
    }

    .altpunk-timeline-dot {
        left: 20px;
    }

    .altpunk-genre-card {
        flex: 0 0 calc(33.33% - 14px);
        max-width: calc(33.33% - 14px);
    }
}

@media only screen and (max-width: 767px) {
    .altpunk-manifesto h1 {
        font-size: calc(1rem + 3vw);
        line-height: calc(1rem + 4.5vw);
    }

    .altpunk-genre-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
        height: 180px;
    }

    .altpunk-timeline-era {
        margin-bottom: 40px;
    }

    .altpunk-highlight {
        padding: 25px;
    }

    .altpunk-big-quote::before {
        font-size: 80px;
    }
}

@media only screen and (max-width: 479px) {
    .altpunk-genre-card {
        flex: 0 0 100%;
        max-width: 100%;
        height: 160px;
    }

    .altpunk-section-intro {
        padding-left: 20px;
    }
}
