/* After You Left - Shared Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: white;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    padding: 20px;
    padding-bottom: 120px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 96vw;
    margin-left: calc(50% - 48vw);
    margin-bottom: 30px;
}

.hero img#heroBg {
    display: block;
    width: 100%;
    max-width: none;
    max-height: 75vh;
    object-fit: cover;
    margin-bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero.loaded img#heroBg {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw !important;
    height: auto !important;
    max-width: 680px;
    max-height: none !important;
    object-fit: contain;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.9s ease;
}

.hero.overlay-reveal .hero-overlay {
    clip-path: inset(0 0 0 0);
}

/* Navigation */
.hero nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 32px 16px;
}

.hero nav a {
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: sans-serif;
    letter-spacing: 1px;
    opacity: 0.85;
    padding-bottom: 4px;
    transition: opacity 0.2s, transform 0.2s;
}

.hero nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.hero nav a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.hero nav a:hover::after {
    transform: scaleX(1);
}

/* Mobile Navigation */
@media (max-width: 480px) {
    .hero-overlay {
        width: 45vw !important;
        max-width: 160px;
    }

    .hero nav {
        gap: 16px;
        padding: 20px 12px;
    }

    .hero nav a {
        font-size: 0.8rem;
    }
}

/* Common Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
}

.modal-overlay.open,
.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 6px;
    padding: 28px;
    position: relative;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: #333 !important;
    z-index: 10;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #bbb !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.modal-box h3 {
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #222;
}

.modal-box p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Links */
.lyrics-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #e63946;
    text-decoration: none;
}

.lyrics-link:hover {
    text-decoration: underline;
}

/* Video Embeds */
.video-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.video-embed-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    display: block;
}

.video-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-embed-wrap .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(230, 57, 70, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-embed-wrap .play-btn::after {
    content: '';
    border-left: 16px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 4px;
}

/* Form Elements */
input {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #e63946;
}

/* Messages */
.message {
    margin-top: 10px;
    font-size: 0.9rem;
}

.success {
    color: green;
}

.error {
    color: red;
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
}

.social-icons svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.contact {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

.contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.contact a:hover {
    color: white;
}

/* Utility Classes */
.signup-divider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border: none;
    border-top: 1px solid #ddd;
    margin-bottom: 30px;
}

.signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.signup span {
    color: #333;
}

.signup form {
    display: flex;
    gap: 10px;
}