/**
 * VIRTUS Claim Page Styles
 * Cosmic gold aesthetic matching virtus.gift brand identity.
 */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --vc-gold: #c9a84c;
    --vc-gold-bright: #f0d080;
    --vc-gold-dim: #7a5e2a;
    --vc-bg: #0a0815;
    --vc-surface: rgba(255, 255, 255, 0.04);
    --vc-surface-hover: rgba(255, 255, 255, 0.08);
    --vc-border: rgba(201, 168, 76, 0.2);
    --vc-text: #e8dfc8;
    --vc-text-dim: #9a917d;
    --vc-error: #d4534b;
    --vc-success: #5cb85c;
    --vc-font-heading: 'Cinzel', serif;
    --vc-font-body: 'Cormorant Garamond', serif;
    --vc-radius: 8px;
}

/* ── Page Layout ────────────────────────────────────────────────────────── */
.vc-page {
    min-height: 100vh;
    background: var(--vc-bg);
    color: var(--vc-text);
    font-family: var(--vc-font-body);
    font-size: 18px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 4rem;
}

.vc-container {
    width: 100%;
    max-width: 600px;
}

/* ── Medal Card ─────────────────────────────────────────────────────────── */
.vc-medal-card {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.vc-virtue-label {
    font-family: var(--vc-font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--vc-gold-dim);
    margin-bottom: 0.5rem;
}

.vc-virtue-name {
    font-family: var(--vc-font-heading);
    font-size: 2.2rem;
    color: var(--vc-gold);
    margin: 0 0 0.3rem;
    line-height: 1.2;
}

.vc-recipient {
    font-size: 1.2rem;
    color: var(--vc-text);
    margin: 0.5rem 0 1.5rem;
    font-style: italic;
}

.vc-dedication {
    font-size: 1rem;
    color: var(--vc-text-dim);
    border-top: 1px solid var(--vc-border);
    padding-top: 1.2rem;
    margin-top: 0.5rem;
    font-style: italic;
    max-height: 120px;
    overflow-y: auto;
}

.vc-occasion {
    font-size: 0.85rem;
    color: var(--vc-gold-dim);
    margin-top: 1rem;
}

.vc-sender {
    font-size: 0.9rem;
    color: var(--vc-text-dim);
    margin-top: 0.5rem;
}

/* ── Claim Section ──────────────────────────────────────────────────────── */
.vc-claim-section {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    padding: 2rem;
}

.vc-claim-title {
    font-family: var(--vc-font-heading);
    font-size: 1.1rem;
    color: var(--vc-gold);
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem;
    text-align: center;
}

.vc-claim-subtitle {
    font-size: 0.9rem;
    color: var(--vc-text-dim);
    text-align: center;
    margin: 0 0 1.5rem;
}

/* ── Wallet Buttons ─────────────────────────────────────────────────────── */
#virtus-wallet-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vc-wallet-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    color: var(--vc-text);
    font-family: var(--vc-font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vc-wallet-btn:hover:not(:disabled) {
    background: var(--vc-surface-hover);
    border-color: var(--vc-gold);
    color: var(--vc-gold);
}

.vc-wallet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vc-wallet-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.vc-wallet-letter {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vc-gold-dim);
    color: var(--vc-bg);
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.vc-wallet-name {
    font-family: var(--vc-font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.vc-no-wallet {
    text-align: center;
    color: var(--vc-text-dim);
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* ── Status Messages ────────────────────────────────────────────────────── */
.vc-status {
    padding: 0.75rem 1rem;
    border-radius: var(--vc-radius);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
}

.vc-status--connecting,
.vc-status--processing {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--vc-gold-dim);
    color: var(--vc-gold);
}

.vc-status--connected {
    background: rgba(92, 184, 92, 0.1);
    border: 1px solid rgba(92, 184, 92, 0.3);
    color: var(--vc-success);
}

.vc-status--error {
    background: rgba(212, 83, 75, 0.1);
    border: 1px solid rgba(212, 83, 75, 0.3);
    color: var(--vc-error);
}

/* ── Manual Address Input ───────────────────────────────────────────────── */
.vc-manual-section {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vc-border);
}

.vc-manual-label {
    font-size: 0.85rem;
    color: var(--vc-text-dim);
    margin-bottom: 0.5rem;
    display: block;
}

.vc-manual-input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    color: var(--vc-text);
    font-family: monospace;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.vc-manual-input:focus {
    border-color: var(--vc-gold);
}

.vc-manual-input::placeholder {
    color: var(--vc-text-dim);
    opacity: 0.5;
}

.vc-manual-submit {
    margin-top: 0.75rem;
    width: 100%;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.vc-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--vc-radius);
    font-family: var(--vc-font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.vc-btn-gold {
    background: linear-gradient(135deg, var(--vc-gold), var(--vc-gold-bright));
    color: var(--vc-bg);
}

.vc-btn-gold:hover:not(:disabled) {
    filter: brightness(1.15);
}

.vc-btn-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vc-btn-ghost {
    background: transparent;
    border: 1px solid var(--vc-border);
    color: var(--vc-text-dim);
}

.vc-btn-ghost:hover {
    border-color: var(--vc-gold-dim);
    color: var(--vc-gold-dim);
}

/* ── Claim Action Area ──────────────────────────────────────────────────── */
#vc-claim-action {
    margin-top: 1rem;
    text-align: center;
}

.vc-address-display {
    font-size: 0.85rem;
    color: var(--vc-text-dim);
    margin-bottom: 1rem;
}

.vc-address-display code {
    display: block;
    font-size: 0.7rem;
    word-break: break-all;
    color: var(--vc-gold-dim);
    margin-top: 0.3rem;
}

#vc-claim-now {
    width: 100%;
    font-size: 1rem;
    padding: 1rem;
}

/* ── Toggle Link ────────────────────────────────────────────────────────── */
.vc-toggle-manual {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.vc-toggle-manual a {
    color: var(--vc-text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vc-toggle-manual a:hover {
    color: var(--vc-gold-dim);
}

/* ── Success Screen ─────────────────────────────────────────────────────── */
.vc-success {
    text-align: center;
    padding: 2rem 0;
}

.vc-success-icon {
    font-size: 3rem;
    color: var(--vc-gold);
    margin-bottom: 1rem;
    animation: vc-pulse 2s ease-in-out infinite;
}

.vc-success h2 {
    font-family: var(--vc-font-heading);
    color: var(--vc-gold);
    font-size: 1.6rem;
    margin: 0 0 0.5rem;
}

.vc-success p {
    color: var(--vc-text-dim);
    margin: 0.4rem 0;
}

.vc-wallet-info code {
    font-size: 0.75rem;
    color: var(--vc-gold-dim);
}

.vc-tx-link {
    color: var(--vc-gold);
    text-decoration: none;
    font-family: var(--vc-font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.vc-tx-link:hover {
    text-decoration: underline;
}

.vc-success-note {
    font-size: 0.8rem;
    margin-top: 1.5rem;
}

/* ── Already Claimed ────────────────────────────────────────────────────── */
.vc-already-claimed {
    text-align: center;
    padding: 1.5rem 0;
}

.vc-already-claimed h3 {
    font-family: var(--vc-font-heading);
    color: var(--vc-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.vc-already-claimed p {
    color: var(--vc-text-dim);
    font-size: 0.9rem;
}

/* ── Error Page ─────────────────────────────────────────────────────────── */
.vc-error-page {
    text-align: center;
    padding: 3rem 0;
}

.vc-error-page h2 {
    font-family: var(--vc-font-heading);
    color: var(--vc-error);
    font-size: 1.3rem;
}

.vc-error-page p {
    color: var(--vc-text-dim);
}

/* ── Memorial Link ──────────────────────────────────────────────────────── */
.vc-memorial-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.vc-memorial-link a {
    color: var(--vc-gold-dim);
    text-decoration: none;
}

.vc-memorial-link a:hover {
    color: var(--vc-gold);
    text-decoration: underline;
}

/* ── Animation ──────────────────────────────────────────────────────────── */
@keyframes vc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.7; transform: scale(1.05); }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media ( max-width: 480px ) {
    .vc-page {
        padding: 1rem 0.75rem 3rem;
    }
    .vc-medal-card,
    .vc-claim-section {
        padding: 1.5rem 1.2rem;
    }
    .vc-virtue-name {
        font-size: 1.8rem;
    }
    #virtus-wallet-buttons {
        flex-direction: column;
    }
    .vc-wallet-btn {
        justify-content: center;
    }
}
