/* ============================================================
   styles.css
   ============================================================ */


/* ── Base ──────────────────────────────────────────────────── */

body {
    font-family: "Inter", sans-serif;
    background-color: #f8fafc;
}


/* ── Cards ─────────────────────────────────────────────────── */

.card-hover {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 153, 204, 0.1);
}

.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 153, 204, 0.12);
}


/* ── Tabs ──────────────────────────────────────────────────── */

.tab-button {
    flex: 1 1 0%;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.tab-button:hover {
    background-color: #6699cc;
    color: #ffffff;
}
.tab-button.active {
    background-color: #6699cc;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 153, 204, 0.2);
}

.tab-content          { display: none; }
.tab-content.active   { display: block; }


/* ── Utility: icon badge ────────────────────────────────────── */

.icon-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(102, 153, 204, 0.1);
    color: #6699cc;
}


/* ── Utility: feature card ──────────────────────────────────── */

.feature-card {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    text-align: center;
}


/* ── Section title ─────────────────────────────────────────── */

.section-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}


/* ── Store card ────────────────────────────────────────────── */

.store-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}
.store-card:hover {
    border-color: rgba(102, 153, 204, 0.3);
    box-shadow: 0 4px 12px rgba(102, 153, 204, 0.1);
}

.store-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(102, 153, 204, 0.1);
    color: #6699cc;
}


/* ── Social button ─────────────────────────────────────────── */

.social-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: #6699cc;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-decoration: none;
}
.social-btn:hover {
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


/* ── Survey block ──────────────────────────────────────────── */

#survey-block {
    will-change: opacity, transform;
}

@keyframes fadeInSurvey {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ── Gacha wheel ───────────────────────────────────────────── */

.wheel-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 24px solid #1f2937;
    z-index: 10;
}

.wheel-spin-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    background: #1f2937 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: 4px solid #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.2 !important;
    flex: none !important;
    padding: 0 !important;
}
.wheel-spin-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.wheel-spin-btn:not(:disabled):hover {
    background: #374151 !important;
    transform: translate(-50%, -50%) scale(1.05) !important;
}

.spin-counter {
    background: #f3f4f6;
    border-radius: 999px;
    padding: 6px 20px;
    font-size: 0.85rem;
    color: #374151;
    font-weight: 500;
    display: inline-block;
}
.spin-counter span {
    font-weight: 700;
    color: #1f2937;
}


/* ── QR / payment box ──────────────────────────────────────── */

.qr-box {
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

#qr-img {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 8px;
}


/* ── Result popup ──────────────────────────────────────────── */

#result-popup {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#result-popup.open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.result-card {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.result-emoji { font-size: 52px;      margin-bottom: 12px; }
.result-title { font-size: 1.25rem;   font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.result-sub   { font-size: 0.85rem;   color: #6b7280;   margin-bottom: 20px; }

.result-code {
    background: #f3f4f6;
    border-radius: 10px;
    padding: 10px 16px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1f2937;
    margin-bottom: 16px;
}