/**
 * Heart of Darkness Beer Poll Styles
 *
 * Following official HOD brand guidelines
 * RED (#c41e3a) + BLACK (#1a1a1a) only
 * Typography: LaPresse (ALL CAPS) + system fallback
 *
 * @package BeerAsia
 * @since 2.1.0
 */

/* =================================================================
   HOD BRAND IDENTITY
   ================================================================= */

/* HOD Brand Font - LaPresse */
@font-face {
    font-family: 'LaPresse';
    src: url('../hod-assets/fonts/LaPresse.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* HOD Brand Colors - Official */
:root {
    --hod-red: #c41e3a;           /* Pantone 7621C */
    --hod-black: #1a1a1a;         /* Pantone Black 6 C */
    --hod-red-dark: #8a1428;      /* Darker shade for depth */
    --hod-white: #ffffff;
    --hod-gray: #666666;
    --hod-gray-light: #999999;
}

/* =================================================================
   MAIN CONTAINER
   ================================================================= */

.hod-poll-page {
    min-height: 100vh;
    min-height: 100dvh; /* iOS Safari dynamic viewport */
    background: var(--hod-black);
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.hod-poll-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 15px 100px;
    position: relative;
}

/* =================================================================
   HEADER
   ================================================================= */

.hod-poll-header {
    text-align: center;
    padding: 40px 20px 50px;
    border-bottom: 3px solid var(--hod-red);
    margin-bottom: 40px;
}

.hod-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 20px rgba(196, 30, 58, 0.3));
}

.hod-poll-header h1 {
    color: var(--hod-red);
    font-size: 2rem;
    margin: 0 0 20px;
    line-height: 1.1;
    font-weight: 900;
    font-family: 'LaPresse', 'Impact', 'Arial Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hod-poll-header .tagline {
    color: var(--hod-white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hod-poll-header .description {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* =================================================================
   STATS BAR
   ================================================================= */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: rgba(196, 30, 58, 0.08);
    border: 2px solid var(--hod-red);
    border-radius: 0;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    color: var(--hod-red);
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'LaPresse', 'Impact', sans-serif;
    letter-spacing: 1px;
}

.stat-label {
    color: #9a9a9a;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-top: 5px;
}

/* =================================================================
   INSTRUCTION & ACCESSIBILITY
   ================================================================= */

.tap-instruction {
    text-align: center;
    margin-bottom: 30px;
    color: var(--hod-white);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =================================================================
   BEER GRID
   ================================================================= */

.beer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* =================================================================
   BEER CARD
   ================================================================= */

.beer-card {
    background: #0d0d0d;
    border: 2px solid #2a2a2a;
    padding: 0;
    display: flex;
    align-items: stretch;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    min-height: 90px;
    -webkit-tap-highlight-color: transparent;
}

.beer-card.voting {
    opacity: 0.5;
}

.beer-card.voted {
    border-color: var(--hod-red);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.4);
    animation: voteConfirm 0.4s ease;
}

@keyframes voteConfirm {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Color strip on left - beer color */
.beer-color-strip {
    width: 6px;
    flex-shrink: 0;
}

/* Beer content */
.beer-content {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 18px 20px;
    gap: 20px;
}

.beer-info {
    flex: 1;
}

.beer-name {
    color: var(--hod-white);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1.2;
    font-family: 'LaPresse', 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.beer-style {
    color: #a8a8a8;
    font-size: 0.85rem;
    font-weight: 400;
}

/* =================================================================
   VOTE BUTTON
   ================================================================= */

.vote-btn {
    background: var(--hod-red);
    color: var(--hod-white);
    border: none;
    padding: 16px 28px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: 'LaPresse', 'Impact', sans-serif;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.2);
}

.vote-btn:hover {
    background: #d92847;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
    transform: translateY(-2px);
}

.vote-btn:focus-visible {
    outline: 3px solid var(--hod-red);
    outline-offset: 4px;
}

.vote-btn:active {
    transform: translateY(0);
}

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

.vote-btn .count {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.vote-btn .label {
    font-size: 0.6rem;
    opacity: 0.9;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Voted state */
.beer-card.voted .vote-btn {
    background: #fff;
    color: var(--hod-red);
}

/* =================================================================
   FOOTER
   ================================================================= */

.poll-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #2a2a2a;
}

.poll-footer .event-badge {
    display: inline-block;
    background: var(--hod-red);
    color: var(--hod-white);
    padding: 16px 32px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'LaPresse', 'Impact', sans-serif;
    text-transform: uppercase;
}

.poll-footer .event-badge:hover {
    background: #d92847;
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
}

/* =================================================================
   FEEDBACK TOAST
   ================================================================= */

.vote-feedback {
    position: fixed;
    bottom: max(30px, env(safe-area-inset-bottom) + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--hod-red);
    color: var(--hod-white);
    padding: 18px 40px;
    border-radius: 0;
    font-weight: 900;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    font-family: 'LaPresse', 'Impact', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 3px solid var(--hod-black);
}

.vote-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vote-feedback.error {
    background: var(--hod-red);
}

/* =================================================================
   RESPONSIVE - Tablets and up
   ================================================================= */

@media (min-width: 600px) {
    .hod-poll-header h1 {
        font-size: 2.8rem;
    }

    .hod-logo {
        max-width: 320px;
    }

    .beer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .beer-card {
        flex-direction: column;
        min-height: auto;
    }

    .beer-card:hover {
        border-color: var(--hod-red);
        transform: translateY(-4px);
        box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
    }

    .beer-color-strip {
        width: 100%;
        height: 6px;
    }

    .beer-content {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .beer-info {
        margin-bottom: 15px;
    }

    .vote-btn {
        width: 100%;
        padding: 18px;
    }
}

@media (min-width: 700px) {
    .hod-poll-container {
        padding: 30px 20px 100px;
    }
}
