/* =========================================
   Nightwave Linktree - style.css
   ========================================= */

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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Arial Black', 'Arial', sans-serif;
    overflow-x: hidden;
}

/* ---- Intro canvas ---- */
#intro-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Container ---- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 680px;
    padding: 48px 32px;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.7s ease 0.15s both;
}

/* ---- Header / Profile ---- */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
}

.logo {
    width: 440px;
    max-width: 90vw;
    filter: drop-shadow(0 0 14px rgba(200, 80, 50, 0.5)) drop-shadow(0 0 36px rgba(100, 50, 200, 0.3));
}

/* ---- Links wrapper (Bean absolute-left, buttons full-width centered) ---- */
.links-wrapper {
    position: relative;
    width: 100%;
    /* left padding reserves space so Bean doesn't overlap button text */
    padding-left: 140px;
}

.bean-presenter {
    position: absolute;
    left: -16px;
    bottom: -12px;
    width: 190px;
    z-index: 2;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.65));
}

/* ---- Links ---- */
.links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* ---- Buttons (base) ---- */
.btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 32px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Dark semi-transparent fill */
    background: rgba(12, 12, 12, 0.82);
    /* Transparent border — gradient applied via ::before */
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 0;
}

/* Gradient border using pseudo-element */
.btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: linear-gradient(90deg, #c0392b, #e67e22, #c8b020, #27ae60, #2471a3, #6c3483);
    z-index: -1;
    transition: opacity 0.2s ease;
}

/* Ripple element injected by JS */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.55s linear;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 1;
}

.btn-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-label {
    flex: 1;
    text-align: center;
    /* Offset so label appears visually centered accounting for icon */
    padding-right: 26px;
}

/* ---- Rainbow hover (all buttons) ---- */
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    animation: rainbow-glow 1.8s linear infinite;
}

.btn:hover::before {
    animation: rainbow-border 1.8s linear infinite;
}

/* ---- Animations ---- */

/* Cycles the border gradient through all hues */
@keyframes rainbow-border {
    0%   { filter: hue-rotate(0deg)   brightness(1.3); }
    100% { filter: hue-rotate(360deg) brightness(1.3); }
}

/* Pulses the outer glow through the rainbow palette */
@keyframes rainbow-glow {
    0%   { box-shadow: 0 6px 28px rgba(192,  57,  43, 0.7), 0 0 14px rgba(192,  57,  43, 0.4); }
    16%  { box-shadow: 0 6px 28px rgba(230, 126,  34, 0.7), 0 0 14px rgba(230, 126,  34, 0.4); }
    33%  { box-shadow: 0 6px 28px rgba(200, 176,  32, 0.7), 0 0 14px rgba(200, 176,  32, 0.4); }
    50%  { box-shadow: 0 6px 28px rgba( 39, 174,  96, 0.7), 0 0 14px rgba( 39, 174,  96, 0.4); }
    66%  { box-shadow: 0 6px 28px rgba( 36, 113, 163, 0.7), 0 0 14px rgba( 36, 113, 163, 0.4); }
    83%  { box-shadow: 0 6px 28px rgba(108,  52, 131, 0.7), 0 0 14px rgba(108,  52, 131, 0.4); }
    100% { box-shadow: 0 6px 28px rgba(192,  57,  43, 0.7), 0 0 14px rgba(192,  57,  43, 0.4); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ---- Footer ---- */
.footer {
    margin-top: 80px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.05em;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer a:hover {
    color: #e67e22; /* Matches one of the rainbow colors */
    text-shadow: 0 0 8px rgba(230, 126, 34, 0.5);
}

/* ---- Accessibility utility ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   - Desktop:  769px+   (default styles above)
   - Tablet:   481–768px
   - Mobile:   ≤480px
============================================= */

/* ---- Tablet (481px – 768px) ---- */
@media (max-width: 768px) {
    .container {
        max-width: 560px;
        padding: 40px 24px;
    }

    .logo {
        width: 340px;
    }

    .bean-presenter {
        width: 150px;
        left: -10px;
    }

    .links-wrapper {
        padding-left: 110px;
    }

    .btn {
        font-size: 1rem;
        padding: 16px 24px;
    }

    .btn-icon {
        width: 24px;
        height: 24px;
    }
}

/* ---- Mobile (≤480px) ---- */
@media (max-width: 480px) {
    .container {
        padding: 32px 20px;
    }

    .logo {
        width: 260px;
    }

    /* Hide Bean, remove padding, center buttons full-width */
    .links-wrapper {
        padding-left: 0;
    }

    .bean-presenter {
        display: none;
    }

    .links {
        width: 100%;
    }

    .btn {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    .btn-label {
        text-align: center;
        padding-right: 0;
    }
}

/* ---- Small mobile (≤360px) ---- */
@media (max-width: 360px) {
    .logo {
        width: 220px;
    }

    .btn {
        font-size: 0.88rem;
        padding: 13px 16px;
    }
}

/* ---- Contact Form ---- */
.hidden {
    display: none !important;
}

.contact-section {
    width: 100%;
    margin-top: 20px;
    padding-top: 0;
    animation: fadeIn 0.4s ease both;
}

.back-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

.section-title {
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(12, 12, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 12px rgba(230, 126, 34, 0.2);
}

.submit-btn {
    width: 100%;
    border: none;
    margin-top: 10px;
}

/* ---- Form labels ---- */
.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.label-note {
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.45);
}

.label-optional {
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Form sections ---- */
.form-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    margin-top: 28px;
}

.form-section:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.form-section-last {
    padding-bottom: 8px;
}

.form-section-title {
    color: #e67e22;
    font-size: 0.8rem;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ---- Side-by-side inputs ---- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ---- Pill-style radio / checkbox groups ---- */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(12, 12, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    user-select: none;
}

.pill input[type="checkbox"],
.pill input[type="radio"] {
    display: none;
}

.pill:hover {
    border-color: rgba(230, 126, 34, 0.6);
    color: #fff;
}

.pill:has(input:checked) {
    background: rgba(230, 126, 34, 0.18);
    border-color: #e67e22;
    color: #fff;
}

/* ---- Single checkbox with label ---- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    accent-color: #e67e22;
    margin-top: 1px;
    cursor: pointer;
}

.checkbox-group label {
    display: inline;
    font-family: 'Arial', sans-serif;
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-group label a {
    color: #e67e22;
    text-decoration: underline;
}

.checkbox-group label strong {
    color: #fff;
}

/* ---- reCAPTCHA notice ---- */
.recaptcha-notice {
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
}

/* =============================================
   RULES PAGE
============================================= */

.rules-section {
    width: 100%;
    margin-top: 20px;
    animation: fadeIn 0.4s ease both;
}

.rules-intro {
    background: rgba(12, 12, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-intro p {
    font-family: 'Arial', sans-serif;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.rules-policy {
    margin-bottom: 40px;
}

.policy-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-family: 'Arial', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.policy-badge--zero {
    background: rgba(192, 57, 43, 0.25);
    border: 1px solid rgba(192, 57, 43, 0.6);
    color: #e74c3c;
}

.policy-badge--strike {
    background: rgba(230, 126, 34, 0.2);
    border: 1px solid rgba(230, 126, 34, 0.5);
    color: #e67e22;
}

.policy-badge--raid {
    background: rgba(36, 113, 163, 0.2);
    border: 1px solid rgba(36, 113, 163, 0.5);
    color: #3498db;
}

.strike-legend {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(230, 126, 34, 0.08);
    border-left: 3px solid #e67e22;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 16px;
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.strike-legend strong {
    color: #fff;
}

.rules-note {
    font-family: 'Arial', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 16px;
    line-height: 1.5;
}

.rule-item {
    display: flex;
    gap: 16px;
    background: rgba(12, 12, 12, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
}

.rule-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

.rule-body h4 {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.rule-body p {
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin-bottom: 6px;
}

.rule-body ul {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
}

.rule-body ul li {
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.rule-note {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 6px;
    line-height: 1.5;
}

/* Raiding schedule pills */
.raid-schedule {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.raid-day {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
}

.raid-day strong {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.raid-day--allowed {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.4);
    color: #2ecc71;
}

.raid-day--no-raid {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: #e74c3c;
}

.rules-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
