/* Modern Horse Racing Theme - Google Material Design Inspired */

:root {
    /* Horse Racing Colors */
    --racing-green: #1a5f3f;
    --racing-green-dark: #0f4329;
    --racing-gold: #d4af37;
    --racing-gold-light: #e8c76a;
    --burgundy: #7d1d3f;
    --burgundy-dark: #5c1530;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    
    /* Semantic Colors */
    --success: #34a853;
    --error: #ea4335;
    --warning: #fbbc04;
    --info: #4285f4;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Google Sans', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-900);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

header h1 {
    font-size: 1.75rem;
    color: var(--racing-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.subtitle {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 4px;
}

.last-updated {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buttons - Material Design Style */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--racing-gold);
    color: var(--gray-900);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-transform: uppercase;
}

.btn-premium:hover {
    background: var(--racing-gold-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-premium:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--racing-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-manage {
    background: transparent;
    color: var(--racing-green);
    border: 1px solid var(--gray-300);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-manage:hover {
    background: var(--gray-50);
    border-color: var(--racing-green);
}

/* Free Tier Notice */
.free-tier-notice {
    background: var(--white);
    border: 1px solid var(--racing-gold);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.notice-content h3 {
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 1.125rem;
    font-weight: 500;
}

.notice-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.btn-upgrade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--racing-gold);
    color: var(--gray-900);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-upgrade:hover {
    background: var(--racing-gold-light);
    box-shadow: var(--shadow-md);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat.premium {
    background: linear-gradient(135deg, var(--racing-green) 0%, var(--racing-green-dark) 100%);
    color: var(--white);
    border: none;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--racing-green);
    letter-spacing: -0.02em;
}

.stat.premium .stat-number {
    color: var(--white);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 8px;
    font-weight: 400;
}

.stat.premium .stat-label {
    color: rgba(255,255,255,0.9);
}

/* Race Cards */
.races-grid {
    display: grid;
    gap: 24px;
}

.race-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    overflow: hidden;
}

.race-card:hover {
    box-shadow: var(--shadow-md);
}

.race-card.locked {
    position: relative;
}

.race-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.race-info h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 4px;
    font-weight: 500;
}

.race-time {
    color: var(--gray-600);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.race-details {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.race-name {
    font-weight: 400;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

/* Predictions */
.predictions-list h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.runner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.runner:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-200);
}

.runner.top-pick {
    background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.05) 100%);
    border: 2px solid var(--racing-gold);
}

.runner-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--racing-green);
    color: var(--white);
    border-radius: 50%;
    font-weight: 500;
    font-size: 1.125rem;
    box-shadow: var(--shadow-sm);
}

.runner.top-pick .number-badge {
    background: var(--racing-gold);
    color: var(--gray-900);
}

.horse-name {
    font-weight: 500;
    color: var(--gray-900);
    font-size: 1rem;
    margin-bottom: 4px;
}

.runner-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.runner-prediction {
    text-align: right;
    min-width: 100px;
}

.probability-bar {
    width: 80px;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.probability-fill {
    height: 100%;
    background: var(--racing-green);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.runner.top-pick .probability-fill {
    background: var(--racing-gold);
}

.probability-text {
    font-weight: 500;
    color: var(--racing-green);
    font-size: 1rem;
}

.runner.top-pick .probability-text {
    color: var(--racing-gold);
}

/* Locked Race Overlay */
.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    z-index: 10;
}

.locked-overlay .lock-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.locked-overlay h3 {
    color: var(--gray-900);
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.locked-overlay p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 0.9375rem;
}

.btn-unlock-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--racing-gold);
    color: var(--gray-900);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.btn-unlock-small:hover {
    background: var(--racing-gold-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

/* Premium Upsell */
.premium-upsell {
    margin-top: 16px;
    padding: 24px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    text-align: center;
}

.lock-content h4 {
    color: var(--gray-900);
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.lock-content p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: all var(--transition-slow);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid var(--racing-gold);
}

.popular-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--racing-gold);
    color: var(--gray-900);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

.plan-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.plan-header h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    font-weight: 500;
}

.price {
    font-size: 3rem;
    font-weight: 400;
    color: var(--racing-green);
    letter-spacing: -0.02em;
}

.currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.period {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

.plan-features ul {
    list-style: none;
    margin-bottom: 32px;
}

.plan-features li {
    padding: 12px 0;
    color: var(--gray-700);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-subscribe {
    width: 100%;
    padding: 14px;
    background: var(--racing-green);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.btn-subscribe:hover {
    background: var(--racing-green-dark);
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-subscribe.featured {
    background: var(--racing-gold);
    color: var(--gray-900);
}

.btn-subscribe.featured:hover {
    background: var(--racing-gold-light);
}

/* Features Section */
.features-section {
    margin: 64px 0;
}

.features-section h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 12px;
    font-weight: 500;
}

.feature p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding: 48px 32px;
    border-radius: var(--radius-xl);
    margin: 48px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 32px;
    font-weight: 500;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-weight: 500;
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Footer */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 48px 0;
    margin-top: 64px;
    text-align: center;
}

footer p {
    margin: 8px 0;
    font-size: 0.875rem;
}

.disclaimer {
    font-weight: 500;
    margin-top: 16px;
    color: var(--gray-500);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .race-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .runner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .runner-prediction {
        width: 100%;
    }
    
    .probability-bar {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Loading States */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(90deg, var(--gray-100) 0%, var(--gray-200) 50%, var(--gray-100) 100%);
    background-size: 1000px 100%;
}
