/**
 * Baltimore Battle Competition Styles
 * Clean, Modern, Elegant Design
 */

/* Google Fonts - Add to your theme or use system fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bb-gold: #C5A572;
    --bb-gold-dark: #A8894D;
    --bb-gold-light: #FDF8EE;
    --bb-gold-border: #D4B896;
    --bb-green: #1B7B4E;
    --bb-green-dark: #145F3C;
    --bb-green-light: #E8F5EE;
    --bb-black: #222222;
    --bb-white: #FFFFFF;
    --bb-gray-bg: #F7F7F7;
    --bb-gray-100: #FAFAFA;
    --bb-gray-200: #F0F0F0;
    --bb-gray-300: #E0E0E0;
    --bb-gray-400: #BDBDBD;
    --bb-gray-500: #9E9E9E;
    --bb-gray-600: #757575;
    --bb-gray-700: #616161;
    --bb-text: #333333;
    --bb-text-light: #666666;
    --bb-text-muted: #888888;
    --bb-red: #D32F2F;
    --bb-orange: #E67E22;
    --bb-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --bb-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --bb-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --bb-radius: 12px;
    --bb-radius-lg: 20px;
    --bb-radius-full: 50%;
    --bb-transition: all 0.25s ease;
    --bb-font-serif: 'Playfair Display', Georgia, serif;
    --bb-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
.baltimore-battle-container {
    font-family: var(--bb-font-sans);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: var(--bb-white);
    color: var(--bb-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.baltimore-battle-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================================
   HERO SECTION
   ================================ */
.bb-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        160deg,
        rgba(27, 123, 78, 0.92) 0%,
        rgba(20, 95, 60, 0.95) 40%,
        rgba(15, 15, 15, 0.97) 100%
    );
    z-index: 1;
}

.bb-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
}

.bb-prize-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--bb-gold) 0%, var(--bb-gold-dark) 100%);
    color: var(--bb-white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 30px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 4px 15px rgba(197, 165, 114, 0.4);
}

.bb-hero-title {
    font-family: var(--bb-font-serif);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--bb-white);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
}

.bb-vs-text {
    color: var(--bb-gold);
    display: block;
    font-size: 1.5rem;
    margin: 15px 0;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 2px;
}

.bb-match-info {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 25px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.bb-match-info strong {
    color: var(--bb-gold);
    font-weight: 600;
}

/* ================================
   PRIZES SECTION
   ================================ */
.bb-prizes-section {
    background: var(--bb-gray-bg);
    padding: 80px 20px;
}

.bb-section-title {
    text-align: center;
    font-family: var(--bb-font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--bb-black);
    margin-bottom: 10px;
}

.bb-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--bb-green);
    margin: 25px auto 60px;
}

.bb-prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.bb-prize-card {
    background: var(--bb-white);
    border-radius: var(--bb-radius-lg);
    padding: 45px 30px 40px;
    text-align: center;
    box-shadow: var(--bb-shadow);
    transition: var(--bb-transition);
    border: 2px solid transparent;
    position: relative;
}

.bb-prize-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-lg);
}

/* Featured Card - Gold Border */
.bb-prize-card.featured {
    border-color: var(--bb-gold);
    background: linear-gradient(180deg, var(--bb-gold-light) 0%, var(--bb-white) 50%);
}

/* Prize Icons */
.bb-prize-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    border-radius: var(--bb-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Gold Medal Icon */
.bb-prize-card.featured .bb-prize-icon {
    background: linear-gradient(145deg, #F4D03F 0%, #E9B824 50%, #D4A012 100%);
    box-shadow: 0 6px 20px rgba(228, 184, 36, 0.4);
}

.bb-prize-card.featured .bb-prize-icon::before {
    content: '🥇';
    font-size: 2rem;
}

/* Silver/Green Medal */
.bb-prize-card:nth-child(2) .bb-prize-icon {
    background: var(--bb-green);
    box-shadow: 0 6px 20px rgba(27, 123, 78, 0.3);
}

.bb-prize-card:nth-child(2) .bb-prize-icon::before {
    content: '🥈';
    font-size: 2rem;
}

/* Gift Icon */
.bb-prize-card:nth-child(3) .bb-prize-icon {
    background: var(--bb-green);
    box-shadow: 0 6px 20px rgba(27, 123, 78, 0.3);
}

.bb-prize-card:nth-child(3) .bb-prize-icon::before {
    content: '🎁';
    font-size: 1.8rem;
}

.bb-prize-amount {
    font-family: var(--bb-font-sans);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.bb-prize-card.featured .bb-prize-amount {
    color: var(--bb-gold-dark);
}

.bb-prize-card:not(.featured) .bb-prize-amount {
    color: var(--bb-green);
}

.bb-prize-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bb-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bb-prize-desc {
    font-size: 0.9rem;
    color: var(--bb-text-muted);
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

/* ================================
   FORM SECTION
   ================================ */
.bb-form-section {
    background: var(--bb-white);
    padding: 80px 20px;
}

.bb-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bb-white);
    border-radius: var(--bb-radius-lg);
    box-shadow: var(--bb-shadow-lg);
    overflow: hidden;
    border: 1px solid var(--bb-gray-200);
}

.bb-form-header {
    background: linear-gradient(135deg, var(--bb-green) 0%, var(--bb-green-dark) 100%);
    padding: 35px 30px;
    text-align: center;
}

.bb-form-header h3 {
    font-family: var(--bb-font-serif);
    color: var(--bb-white);
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.bb-form-header p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-size: 0.95rem;
    font-weight: 300;
}

.bb-form-body {
    padding: 45px 40px;
}

.bb-form-group {
    margin-bottom: 25px;
}

.bb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bb-form-label {
    display: block;
    font-weight: 500;
    color: var(--bb-text);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.bb-form-label .required {
    color: var(--bb-red);
    margin-left: 2px;
}

.bb-form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--bb-gray-300);
    border-radius: var(--bb-radius);
    font-size: 1rem;
    font-family: var(--bb-font-sans);
    transition: var(--bb-transition);
    background: var(--bb-white);
    color: var(--bb-text);
}

.bb-form-input:focus {
    outline: none;
    border-color: var(--bb-green);
    box-shadow: 0 0 0 4px rgba(27, 123, 78, 0.1);
}

.bb-form-input::placeholder {
    color: var(--bb-gray-500);
}

/* ================================
   SCORE PREDICTIONS SECTION
   ================================ */
.bb-scores-section {
    background: var(--bb-gray-100);
    border: 1px solid var(--bb-gray-200);
    border-radius: var(--bb-radius-lg);
    padding: 35px 30px;
    margin: 35px 0;
}

.bb-scores-title {
    text-align: center;
    font-family: var(--bb-font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--bb-text);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bb-scores-title::before {
    content: '🏉';
    font-style: normal;
}

.bb-score-block {
    background: var(--bb-white);
    border: 1px solid var(--bb-gray-200);
    border-radius: var(--bb-radius);
    padding: 25px 20px;
    margin-bottom: 20px;
}

.bb-score-block:last-of-type {
    margin-bottom: 0;
}

.bb-score-label {
    text-align: center;
    font-family: var(--bb-font-serif);
    font-weight: 500;
    font-style: italic;
    color: var(--bb-text);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.bb-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bb-team-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 160px;
}

.bb-team-name {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bb-team-sa .bb-team-name {
    color: var(--bb-green);
}

.bb-team-nz .bb-team-name {
    color: var(--bb-text);
}

.bb-score-input {
    width: 80px;
    height: 55px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--bb-font-sans);
    border: 1.5px solid var(--bb-gray-300);
    border-radius: var(--bb-radius);
    transition: var(--bb-transition);
    background: var(--bb-white);
    color: var(--bb-text);
}

.bb-score-input:focus {
    outline: none;
    border-color: var(--bb-gold);
    box-shadow: 0 0 0 4px rgba(197, 165, 114, 0.15);
}

.bb-score-input::-webkit-inner-spin-button,
.bb-score-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.bb-vs-divider {
    font-family: var(--bb-font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--bb-gold-dark);
    padding: 0 5px;
}

/* Spread Total Display */
.bb-spread-display {
    background: var(--bb-white);
    border: 2px solid var(--bb-gold);
    border-radius: var(--bb-radius);
    padding: 20px;
    text-align: center;
    margin-top: 25px;
}

.bb-spread-label {
    color: var(--bb-text);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.bb-spread-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--bb-text);
}

/* ================================
   AGE CONFIRMATION
   ================================ */
.bb-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #FFF8F0;
    border: 1px solid #FFECD9;
    border-radius: var(--bb-radius);
}

.bb-checkbox {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--bb-green);
}

.bb-checkbox-label {
    font-size: 0.9rem;
    color: var(--bb-text);
    cursor: pointer;
    line-height: 1.6;
}

.bb-checkbox-label strong {
    color: var(--bb-red);
    font-weight: 600;
}

/* ================================
   SUBMIT BUTTON
   ================================ */
.bb-submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--bb-green);
    color: var(--bb-white);
    border: none;
    border-radius: var(--bb-radius);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--bb-font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--bb-transition);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.bb-submit-btn:hover {
    background: var(--bb-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 123, 78, 0.3);
}

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

.bb-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.bb-submit-btn .bb-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--bb-white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.bb-submit-btn.loading .bb-spinner {
    display: inline-block;
}

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

/* ================================
   MESSAGES
   ================================ */
.bb-message {
    padding: 16px 20px;
    border-radius: var(--bb-radius);
    margin-bottom: 25px;
    font-size: 0.95rem;
    display: none;
    line-height: 1.5;
}

.bb-message.show {
    display: block;
}

.bb-message.success {
    background: var(--bb-green-light);
    border: 1px solid var(--bb-green);
    color: var(--bb-green-dark);
}

.bb-message.error {
    background: #FFEBEE;
    border: 1px solid var(--bb-red);
    color: var(--bb-red);
}

/* ================================
   SUCCESS STATE
   ================================ */
.bb-success-state {
    display: none;
    text-align: center;
    padding: 60px 40px;
}

.bb-success-state.show {
    display: block;
}

.bb-success-icon {
    width: 90px;
    height: 90px;
    background: var(--bb-green);
    border-radius: var(--bb-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: var(--bb-white);
    animation: success-pop 0.5s ease-out;
}

@keyframes success-pop {
    0% { transform: scale(0); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.bb-success-title {
    font-family: var(--bb-font-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bb-green);
    margin-bottom: 15px;
}

.bb-success-text {
    font-size: 1rem;
    color: var(--bb-text-light);
    line-height: 1.7;
}

/* ================================
   CONDITIONS SECTION
   ================================ */
.bb-conditions-section {
    background: var(--bb-gray-bg);
    padding: 80px 20px;
}

.bb-conditions-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.bb-conditions-content {
    background: var(--bb-white);
    border-radius: var(--bb-radius-lg);
    padding: 50px;
    box-shadow: var(--bb-shadow);
}

.bb-conditions-content h4 {
    font-family: var(--bb-font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bb-text);
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bb-gray-200);
}

.bb-conditions-content h4:first-child {
    margin-top: 0;
}

.bb-conditions-content p,
.bb-conditions-content li {
    color: var(--bb-text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.bb-conditions-content a {
    color: var(--bb-green);
    text-decoration: none;
    font-weight: 500;
}

.bb-conditions-content a:hover {
    text-decoration: underline;
}

.bb-conditions-content ul {
    padding-left: 0;
    margin: 15px 0;
    list-style: none;
}

.bb-conditions-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.bb-conditions-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bb-green);
    font-weight: 700;
}

.bb-highlight {
    background: var(--bb-gold-light);
    border-left: 4px solid var(--bb-gold);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--bb-radius) var(--bb-radius) 0;
}

.bb-highlight p {
    margin: 0;
    color: var(--bb-text);
}

.bb-warning {
    background: #FFF3E0;
    border-left: 4px solid var(--bb-orange);
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 var(--bb-radius) var(--bb-radius) 0;
}

.bb-warning p {
    margin: 0;
    color: #E65100;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 900px) {
    .bb-prizes-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
    
    .bb-prize-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .bb-hero {
        min-height: 420px;
    }
    
    .bb-hero-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .bb-vs-text {
        font-size: 1.2rem;
    }
    
    .bb-match-info {
        font-size: 0.95rem;
    }
    
    .bb-section-title {
        font-size: 2rem;
    }
    
    .bb-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bb-form-body {
        padding: 30px 25px;
    }
    
    .bb-scores-section {
        padding: 25px 20px;
    }
    
    .bb-score-row {
        gap: 12px;
    }
    
    .bb-score-input {
        width: 70px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .bb-conditions-content {
        padding: 30px 25px;
    }
    
    .bb-prizes-section,
    .bb-form-section,
    .bb-conditions-section {
        padding: 50px 15px;
    }
}

@media (max-width: 480px) {
    .bb-hero-content {
        padding: 30px 15px;
    }
    
    .bb-hero-title {
        font-size: 1.8rem;
    }
    
    .bb-prize-badge {
        font-size: 0.75rem;
        padding: 8px 20px;
    }
    
    .bb-prize-amount {
        font-size: 2.2rem;
    }
    
    .bb-score-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .bb-team-score {
        flex-direction: row;
        max-width: 100%;
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
    }
    
    .bb-vs-divider {
        display: none;
    }
    
    .bb-score-input {
        width: 80px;
        height: 50px;
    }
    
    .bb-submit-btn {
        padding: 16px 20px;
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}
