/* ═══════════════════════════════════════════════════════
   JustSendOne — Gallery Styles
   ═══════════════════════════════════════════════════════ */

/* ── Gallery Body ── */
.gallery-body {
    min-height: 100vh;
    background: #0a0a0a;
    color: #f5f5f5;
    overflow-y: auto;
}

/* ── Header ── */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.gallery-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #d4af37;
}

.logo-symbol {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-nav .nav-link {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.gallery-nav .nav-link:hover {
    color: #d4af37;
}

/* ── Gallery Hero ── */
.gallery-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
}

.gallery-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #d4af37 0%, #f0d060 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gallery-subtitle {
    color: #777;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ── Stats Bar ── */
.gallery-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    color: #d4af37;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
}

/* ── Filters ── */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #888;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-btn:hover {
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.filter-btn.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: #d4af37;
    color: #d4af37;
}

/* ── Gallery Grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Gallery Card ── */
.gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.08);
}

.gallery-card--million {
    border-color: rgba(229, 228, 226, 0.12);
}

.gallery-card--million:hover {
    border-color: rgba(229, 228, 226, 0.4);
    box-shadow: 0 12px 40px rgba(229, 228, 226, 0.08);
}

/* ── Card Art ── */
.card-art {
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
}

.gallery-nft-canvas {
    width: 100%;
    max-width: 256px;
    height: auto;
    border-radius: 8px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.auth-link {
    color: var(--gold);
    font-weight: 600;
}

.seeded-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(212, 175, 55, 0.9);
    color: #0a0a0a;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* ── Card Info ── */
.card-info {
    padding: 1rem 1.2rem 1.2rem;
}

.card-serial {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #d4af37;
    margin-bottom: 0.2rem;
}

.gallery-card--million .card-serial {
    color: #e5e4e2;
}

.card-tier-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.card-edition {
    font-size: 0.72rem;
    color: #555;
    margin-bottom: 0.8rem;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.card-owner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.owner-icon {
    font-size: 0.8rem;
}

.owner-name {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 500;
}

.card-date {
    font-size: 0.7rem;
    color: #555;
}

/* ── Verify Button ── */
.verify-btn {
    width: 100%;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 0.5rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.verify-btn:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: #d4af37;
}

/* ── Verify Modal ── */
.modal-content--verify {
    max-width: 420px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #d4af37;
}

.verify-success,
.verify-fail {
    text-align: center;
    padding: 1rem 0;
}

.verify-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.verify-details {
    margin-top: 1rem;
    text-align: left;
}

.verify-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.verify-row span:first-child {
    color: #666;
}

.verify-row span:last-child {
    color: #ccc;
    font-weight: 500;
}

.verify-row--mono span:last-child {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 0.7rem;
    word-break: break-all;
}

/* ── Loading ── */
.gallery-loading {
    text-align: center;
    padding: 4rem;
    grid-column: 1 / -1;
    color: #555;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    border-top-color: #d4af37;
    border-radius: 50%;
    animation: spin 0.8s ease-in-out infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-error,
.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #555;
    grid-column: 1 / -1;
}

.gallery-empty a {
    color: #d4af37;
    text-decoration: none;
}

/* ── Footer ── */
.gallery-footer {
    text-align: center;
    padding: 2rem;
    color: #444;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .gallery-header {
        padding: 1rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
        padding: 1rem 1.5rem 3rem;
    }

    .gallery-stats {
        gap: 1.2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* ═══ Additions to main style.css for new elements ═══ */

/* Stock counter */
.card-stock {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 100px;
    justify-content: center;
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.stock-dot--platinum {
    background: #e5e4e2;
}

.stock-count {
    font-size: 0.72rem;
    color: #888;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.03em;
}

.card-stock--platinum {
    background: rgba(229, 228, 226, 0.06);
}

/* Sold out */
.tier-card.sold-out {
    opacity: 0.6;
    pointer-events: none;
}

.tier-card.sold-out .btn {
    background: #333 !important;
    cursor: not-allowed;
}

/* Claim section */
.claim-section {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
}

.claim-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #d4af37;
    margin-bottom: 0.3rem;
}

.claim-sub {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.claim-form {
    display: flex;
    gap: 0.5rem;
}

.claim-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #eee;
    outline: none;
    transition: border-color 0.3s;
}

.claim-input:focus {
    border-color: #d4af37;
}

.claim-input::placeholder {
    color: #555;
}

.claim-status {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #4ecdc4;
    font-weight: 500;
}

/* Checksum mono style */
.meta-value--mono {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 0.7rem;
    word-break: break-all;
}

/* Reward footer */
.reward-footer-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Hero nav link */
.hero-nav {
    margin-top: 0.5rem;
    margin-bottom: 0.3rem;
}

.hero-nav .nav-link {
    color: #666;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.hero-nav .nav-link:hover {
    color: #d4af37;
}

/* ── Vault UI Specifics ── */
.resend-btn {
    background: none;
    border: none;
    color: #888;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.vault-user-email {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.vault-loading-state {
    text-align: center;
    padding: 4rem;
    color: #888;
}

.vault-empty-state {
    text-align: center;
    padding: 4rem;
}

.vault-empty-title {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vault-empty-text {
    color: #888;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.vault-empty-btn {
    display: inline-block;
    max-width: 250px;
    text-decoration: none;
}