/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main Content */
main {
    padding: 40px 20px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Form Styles */
.form-section {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 1rem;
}

input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: normal;
}

.checkbox-label:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #667eea;
}

/* Helper text */
.helper-text {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

/* Button */
.btn-generate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-generate:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-generate:active:not(:disabled) {
    transform: translateY(0);
}

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

/* Results Section */
.results-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    scroll-margin-top: 20px; /* Offset for smooth scroll */
}

#results-container {
    margin-top: 20px;
}

/* Matchday header in results - More compact */
.matchday-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.matchday-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.matchday-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Compact fixture cards - Grid layout for desktop */
.fixtures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.fixture-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fixture-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.league-badge {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.match-info {
    font-size: 0.95rem;
    color: #333;
}

.match-time {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.teams {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.prediction {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: #f8f9fa;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .fixtures-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    main {
        padding: 20px 15px;
    }
}

/* Age Verification Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.age-gate-content h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.age-gate-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-gate-subtext {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-age-confirm,
.btn-age-deny {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-age-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-age-deny {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-age-deny:hover {
    background: #e9ecef;
    border-color: #999;
}

.age-gate-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Main content hidden by default */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive age gate */
@media (max-width: 600px) {
    .age-gate-content {
        padding: 40px 30px;
    }
    
    .age-gate-content h1 {
        font-size: 1.5rem;
    }
    
    .age-gate-buttons {
        flex-direction: column;
    }
}

/* Age Verification Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.age-gate-content h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.age-gate-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-gate-subtext {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-age-confirm,
.btn-age-deny {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-age-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-age-deny {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-age-deny:hover {
    background: #e9ecef;
    border-color: #999;
}

.age-gate-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Main content hidden by default */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive age gate */
@media (max-width: 600px) {
    .age-gate-content {
        padding: 40px 30px;
    }
    
    .age-gate-content h1 {
        font-size: 1.5rem;
    }
    
    .age-gate-buttons {
        flex-direction: column;
    }
}

/* Age Verification Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.age-gate-content h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.age-gate-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-gate-subtext {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-age-confirm,
.btn-age-deny {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-age-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-age-deny {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-age-deny:hover {
    background: #e9ecef;
    border-color: #999;
}

.age-gate-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Main content hidden by default */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive age gate */
@media (max-width: 600px) {
    .age-gate-content {
        padding: 40px 30px;
    }
    
    .age-gate-content h1 {
        font-size: 1.5rem;
    }
    
    .age-gate-buttons {
        flex-direction: column;
    }
}

/* Age Verification Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.age-gate-content h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.age-gate-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-gate-subtext {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-age-confirm,
.btn-age-deny {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-age-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-age-deny {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-age-deny:hover {
    background: #e9ecef;
    border-color: #999;
}

.age-gate-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Main content hidden by default */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive age gate */
@media (max-width: 600px) {
    .age-gate-content {
        padding: 40px 30px;
    }
    
    .age-gate-content h1 {
        font-size: 1.5rem;
    }
    
    .age-gate-buttons {
        flex-direction: column;
    }
}

/* Age Verification Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.age-gate-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    margin: 20px;
}

.age-gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.age-gate-content h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 15px;
}

.age-gate-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.age-gate-subtext {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 30px;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-age-confirm,
.btn-age-deny {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-age-confirm {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-age-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.btn-age-deny {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
}

.btn-age-deny:hover {
    background: #e9ecef;
    border-color: #999;
}

.age-gate-footer {
    font-size: 0.85rem;
    color: #999;
    margin-top: 20px;
}

/* Main content hidden by default */
.main-content {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive age gate */
@media (max-width: 600px) {
    .age-gate-content {
        padding: 40px 30px;
    }
    
    .age-gate-content h1 {
        font-size: 1.5rem;
    }
    
    .age-gate-buttons {
        flex-direction: column;
    }
}

/* Early Kickoff Warning */
.early-kickoff-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: warningPulse 2s ease-in-out infinite;
}

.warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.warning-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
}

@media (max-width: 600px) {
    .early-kickoff-warning {
        padding: 15px;
    }
    
    .warning-icon {
        font-size: 2rem;
    }
    
    .warning-content strong {
        font-size: 1rem;
    }
    
    .warning-content p {
        font-size: 0.9rem;
    }
}

/* Early Kickoff Warning */
.early-kickoff-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: warningPulse 2s ease-in-out infinite;
}

.warning-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.warning-content p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

@keyframes warningPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
}

/* Highlight early kickoff games */
.fixture-card.early-kickoff {
    border: 3px solid #ff6b6b;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 111, 0.1) 100%);
}

.fixture-card.early-kickoff .league-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

@media (max-width: 600px) {
    .early-kickoff-warning {
        padding: 15px;
    }
    
    .warning-image {
        width: 50px;
        height: 50px;
    }
    
    .warning-icon {
        font-size: 2rem;
    }
    
    .warning-content strong {
        font-size: 1rem;
    }
    
    .warning-content p {
        font-size: 0.9rem;
    }
}

/* Mug Warning Messages */
.mug-warning {
    margin-top: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-style: italic;
    animation: fadeIn 0.3s ease-in;
}

.mug-warning.many-games {
    background: rgba(255, 193, 7, 0.15);
    border-left: 4px solid #ffc107;
    color: #f57c00;
}

.mug-warning.max-games {
    background: rgba(244, 67, 54, 0.15);
    border-left: 4px solid #f44336;
    color: #d32f2f;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .mug-warning {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Small warning image (for Mark) */
.warning-image-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(245, 124, 0, 0.5);
    margin-right: 12px;
    flex-shrink: 0;
}

.mug-warning.with-image {
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    .warning-image-small {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 20px;
}

.spinner-mug {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

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

.loading-text {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
}

@media (max-width: 600px) {
    .spinner-mug {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 20px;
}

.spinner-mug {
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
}

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

.loading-text {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 500;
}

@media (max-width: 600px) {
    .spinner-mug {
        width: 60px;
        height: 60px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

/* Site Logo */
.site-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

@media (max-width: 600px) {
    .site-logo {
        max-width: 280px;
    }
}
