/* Fill The Bar - Woot-style Website Design */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Clean White Navigation Header (Woot-style) */
.nav-header {
    background: #fff;
    border-bottom: 3px solid #667eea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #667eea;
}

/* Hero Section - Colorful Promo Area */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.hero-main {
    /* Main promo area */
}

.promo-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.promo-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.promo-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 32px;
}

/* The Bar - Huge and Prominent */
.main-bar-wrapper {
    margin-bottom: 24px;
    position: relative; /* For absolute positioned celebration */
}

.bar-container {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.bar-container:hover {
    background: #e8e8e8;
}

.bar-progress {
    height: 60px;
    background: #ddd;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 30px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
    z-index: 2;
}

.bar-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.875rem;
    color: #666;
}

/* Inline Celebration (not a modal!) - Positioned absolute to avoid layout shift */
.celebration-inline {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #10b981, #34d399);
    padding: 20px 40px;
    border-radius: 12px;
    text-align: center;
    animation: popIn 0.4s ease;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

@keyframes popIn {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.celebration-content {
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.celebration-emoji {
    font-size: 2.5rem;
    animation: spin 0.6s ease;
}

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

/* Entry Display */
.entry-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 2px solid #f0f0f0;
    gap: 20px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
}

.entry-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.entry-number {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
}

.entry-label {
    font-size: 1.125rem;
    color: #666;
}

.btn-cta {
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-upgrades {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-upgrades:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-enter {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.btn-enter:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

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

/* Tips Inline */
.tips-inline {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-top: 16px;
}

.tips-icon {
    font-size: 1.25rem;
}

.tips-inline a {
    color: #f59e0b;
    font-weight: 600;
    text-decoration: none;
}

.tips-inline a:hover {
    text-decoration: underline;
}

/* Ad Spaces */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-space {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-space img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Sections */
.content-section {
    padding: 60px 20px;
    background: #fff;
}

.content-section.bg-light {
    background: #f9f9f9;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.content-main h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: #1a1a1a;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Drawing Card */
.drawing-card {
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

.drawing-prize {
    margin-bottom: 32px;
}

.prize-badge {
    background: #667eea;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
}

.prize-amount {
    font-size: 4rem;
    font-weight: bold;
    color: #f59e0b;
    margin-bottom: 8px;
}

.prize-description {
    font-size: 1.25rem;
    color: #666;
}

.drawing-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.info-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.info-label {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.entry-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.entry-controls label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
}

.entry-input {
    padding: 12px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1.125rem;
    font-weight: bold;
    text-align: center;
}

.entry-input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    background: #10b981;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #059669;
    transform: translateY(-2px);
}

.drawing-disclaimer {
    margin-top: 24px;
    font-size: 0.75rem;
    color: #999;
}

/* Banner Ad Section */
.banner-ad-section {
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

/* Winners List */
.winners-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.winner-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.winner-initial {
    background: #667eea;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.winner-info {
    flex: 1;
}

.winner-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.winner-prize {
    font-size: 0.875rem;
    color: #666;
}

.winner-date {
    font-size: 0.875rem;
    color: #999;
}

/* Home Extra Bars */
.home-bars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.home-extra-bar {
    background: #fff;
    border: 2px solid #10b981;
    border-radius: 8px;
    padding: 20px;
}

.home-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.home-bar-name {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 1rem;
}

.home-bar-reward {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.bar-progress-small {
    height: 32px;
    background: #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.bar-fill-small {
    height: 100%;
    border-radius: 16px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bar-fill-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

.home-bar-stats {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 32px;
}

.footer-section h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-section p {
    color: #999;
    font-size: 0.875rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #999;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container,
    .content-container {
        grid-template-columns: 1fr;
    }

    .hero-sidebar,
    .content-sidebar {
        display: none;
    }

    .nav-links {
        gap: 16px;
        font-size: 0.875rem;
    }
}

@media (max-width: 768px) {
    .promo-title {
        font-size: 2rem;
    }

    .entry-display {
        flex-direction: column;
        gap: 16px;
    }

    .cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .home-bars-grid {
        grid-template-columns: 1fr;
    }
}
