/* ===== InstaCams – Landing ===== */
:root {
    --brand-purple: #7c3aed;
    --brand-pink: #ec4899;
    --brand-blue: #3b82f6;
    --ink: #1f2330;
    --muted: #6b7280;
}

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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #b79ce6;
    overflow: hidden;
}

/* Background hero */
#HeroBack {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(124, 58, 237, 0.25);
    backdrop-filter: blur(1px);
    z-index: 1;
}

/* ===== Top bar / Language menu ===== */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 30;
}

.lang-menu { position: relative; }

.lang-menu summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    box-shadow: 0 6px 18px rgba(40, 10, 80, 0.2);
    user-select: none;
}

.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .globe { font-size: 16px; }

.lang-menu[open] summary {
    background: #fff;
}

.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    max-height: 320px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 50px rgba(40, 10, 80, 0.3);
    animation: pop 0.22s ease;
}

.lang-list li { margin: 0; }

.lang-list a {
    display: block;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.15s ease;
}

.lang-list a:hover { background: #f3effb; }

.lang-list a.active {
    font-weight: 700;
    color: var(--brand-purple);
    background: #f3effb;
}

/* ===== Modals ===== */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
    animation: fade 0.3s ease;
}

.modal.hidden { display: none; }

.modal-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 44px 36px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(40, 10, 80, 0.35);
    animation: pop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
}

.modal-text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

/* Primary button */
.btn-primary {
    margin-top: 28px;
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #fff;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary .arrow { margin-left: 6px; }

.modal-leave {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

.modal-leave span {
    cursor: pointer;
    text-decoration: underline;
}

.modal-leave span:hover { color: var(--ink); }

/* ===== Gender selection ===== */
.gender-options {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 36px;
}

.gender-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
}

.gender-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 22px rgba(40, 10, 80, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gender-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gender-card:hover .gender-avatar {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 30px rgba(59, 130, 246, 0.4);
}

.gender-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

/* ===== Animations ===== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .modal-card { padding: 36px 24px; }
    .modal-title { font-size: 24px; }
    .gender-options { gap: 24px; }
    .gender-avatar { width: 100px; height: 100px; }
}

/* Hide crawlable SEO block */
details.seo-content { position: fixed; left: -9999px; opacity: 0; pointer-events: none; }
