/* source/vote/vote.css — Battle.net Aesthetic for Voting Page */

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

body {
    font-family: 'Noto Sans', sans-serif;
    background-color: #0d1017;
    color: #e4e6eb;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, #1a2233 0%, #0d1017 65%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Global Nav Active Indicator */
.global-nav .nav-links li a.active {
    color: #f2a900;
    border-bottom: 2px solid #f2a900;
}

/* Hero Section */
.vote-main {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
}

.vote-hero {
    text-align: center;
    padding: 4.5rem 2rem 3rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(24, 29, 41, 0.6) 0%, rgba(13, 16, 23, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #f2a900;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.hero-content h1 span {
    color: #f2a900;
}

.hero-content p {
    font-size: 1.05rem;
    color: #a1a6b0;
    font-weight: 400;
    line-height: 1.6;
}

/* Main Content Section */
.vote-content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    width: 100%;
}

/* Account Status Banner */
.account-status-banner {
    background: linear-gradient(135deg, #181e2b, #121620);
    border: 1px solid rgba(242, 169, 0, 0.25);
    border-radius: 8px;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.banner-loading {
    color: #8c93a0;
    font-size: 0.95rem;
    font-style: italic;
}

.banner-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.banner-avatar-icon {
    width: 44px;
    height: 44px;
    background: rgba(242, 169, 0, 0.12);
    border: 1px solid rgba(242, 169, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #f2a900;
}

.banner-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.banner-text p {
    font-size: 0.85rem;
    color: #8c93a0;
}

.banner-balances {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #7b8392;
    text-transform: uppercase;
    font-weight: 700;
}

.balance-value {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.balance-value.vp {
    color: #00d2ff;
}

.balance-value.coins {
    color: #f2a900;
}

/* Guest Banner */
.banner-guest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.guest-prompt {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-icon {
    font-size: 1.5rem;
    color: #f2a900;
}

.guest-text h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #ffffff;
}

.guest-text p {
    font-size: 0.85rem;
    color: #9aa1ad;
}

.guest-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-guest-login {
    background: #0078ff;
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-guest-login:hover {
    background: #0060cc;
}

.btn-guest-register {
    background: transparent;
    color: #f2a900;
    border: 1px solid #f2a900;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-guest-register:hover {
    background: rgba(242, 169, 0, 0.15);
}

/* Alert Notification */
.vote-alert {
    padding: 0.9rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.vote-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.vote-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

/* Grid Header */
.vote-grid-header {
    text-align: center;
    margin-bottom: 2rem;
}

.vote-grid-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.vote-grid-header h2 span {
    color: #f2a900;
}

.vote-grid-divider {
    width: 60px;
    height: 3px;
    background: #f2a900;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Voting Cards Grid */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.vote-card {
    background: linear-gradient(145deg, #181d29, #131720);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.vote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    border-color: rgba(242, 169, 0, 0.35);
}

.vote-card.cooldown {
    opacity: 0.85;
}

.vote-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.site-badge {
    background: rgba(242, 169, 0, 0.12);
    color: #f2a900;
    border: 1px solid rgba(242, 169, 0, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.reward-badge {
    background: rgba(0, 210, 255, 0.12);
    color: #00d2ff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.reward-badge.featured {
    background: rgba(242, 169, 0, 0.18);
    color: #ffc845;
    border: 1px solid rgba(242, 169, 0, 0.5);
    box-shadow: 0 0 8px rgba(242, 169, 0, 0.2);
}

.vote-card.featured {
    border-color: rgba(242, 169, 0, 0.35);
    background: linear-gradient(145deg, #1c2332, #141822);
}

.vote-card.featured:hover {
    border-color: rgba(242, 169, 0, 0.6);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 1px rgba(242, 169, 0, 0.4);
}

.vote-card-body h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.vote-card-body p {
    font-size: 0.88rem;
    color: #8c93a0;
    margin-bottom: 1.25rem;
    min-height: 42px;
}

.cooldown-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.cooldown-label {
    font-size: 0.75rem;
    color: #7b8392;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-indicator.ready {
    color: #10b981;
}

.status-indicator.cooldown {
    color: #f59e0b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.ready .status-dot {
    background: #10b981;
}

.status-indicator.cooldown .status-dot {
    background: #f59e0b;
}

/* Action Button */
.btn-vote-action {
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-vote-action.ready {
    background: linear-gradient(180deg, #f2a900, #c88700);
    color: #0b0e14;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-vote-action.ready:hover {
    background: linear-gradient(180deg, #ffb81c, #d99300);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-vote-action.cooldown {
    background: #1f2533;
    color: #6d7584;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-vote-action.loading {
    background: #2a3244;
    color: #a1a6b0;
    cursor: wait;
}

/* Instructions / Rules Section */
.vote-instructions {
    background: linear-gradient(145deg, #151a24, #10141d);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 2.5rem;
    margin-top: 1rem;
}

.instructions-header {
    text-align: center;
    margin-bottom: 2rem;
}

.instructions-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #f2a900;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.3rem;
}

.instructions-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.instruction-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 1.5rem;
    position: relative;
}

.inst-num {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 900;
    color: rgba(242, 169, 0, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.instruction-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.instruction-card p {
    font-size: 0.85rem;
    color: #8c93a0;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .vote-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .account-status-banner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .banner-balances {
        width: 100%;
        justify-content: space-between;
    }
    .banner-guest {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .guest-actions {
        width: 100%;
        justify-content: stretch;
    }
    .guest-actions a {
        flex: 1;
        text-align: center;
    }
    .vote-grid {
        grid-template-columns: 1fr;
    }
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}
