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

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

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    font-weight: 300;
}

.breadcrumb {
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content */
main {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

section {
    margin-bottom: 40px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    color: #764ba2;
    margin: 20px 0 10px;
    font-size: 1.3em;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Prediction Links */
.prediction-link {
    display: block;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

.link-content h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.link-content p {
    margin: 0;
    opacity: 0.9;
}

/* Predictions Grid */
.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.prediction-card {
    display: block;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.prediction-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h3 {
    color: #667eea;
    margin: 0;
    font-size: 1.3em;
}

.arrow {
    font-size: 1.5em;
    color: #667eea;
    transition: transform 0.2s;
}

.prediction-card:hover .arrow {
    transform: translateX(5px);
}

.prediction-card p {
    margin: 0;
    color: #666;
}

.no-predictions {
    text-align: center;
    color: #999;
    padding: 40px;
    font-size: 1.1em;
}

/* Prediction Content (Individual Pages) */
.prediction-content {
    max-width: 900px;
    margin: 0 auto;
}

.prediction-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.prediction-content table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.prediction-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.prediction-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.prediction-content table tbody tr:hover {
    background: #f5f7fa;
}

.prediction-content table tbody tr:last-child td {
    border-bottom: none;
}

.prediction-content h3 {
    margin-top: 40px;
    padding-top: 20px;
}

.prediction-content hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 40px 0;
}

/* Disclaimer */
.disclaimer {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.disclaimer h3 {
    color: #856404;
    margin: 0 0 10px 0;
    border: none;
}

.disclaimer p {
    color: #856404;
    margin: 0;
}

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

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    main {
        padding: 20px;
    }

    .predictions-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5em;
    }

    /* Card-based table layout for mobile */
    .prediction-content table {
        border: 0;
        box-shadow: none;
    }

    .prediction-content table thead {
        display: none;
    }

    .prediction-content table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .prediction-content table tbody tr:hover {
        background: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }

    .prediction-content table td {
        display: block;
        text-align: right;
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
        padding-left: 50%;
    }

    .prediction-content table td:last-child {
        border-bottom: none;
    }

    .prediction-content table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: #667eea;
        text-align: left;
    }

    /* Ensure touch targets are adequate */
    .prediction-link,
    .prediction-card {
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 0.9em;
    }

    main {
        padding: 15px;
    }

    h2 {
        font-size: 1.3em;
    }

    h3 {
        font-size: 1.1em;
    }

    .prediction-content table td {
        font-size: 0.9em;
        padding: 10px 12px;
        padding-left: 45%;
    }

    .prediction-content table td::before {
        left: 12px;
        font-size: 0.85em;
    }

    .prediction-link,
    .prediction-card {
        padding: 15px;
    }

    .predictions-grid {
        gap: 15px;
    }
}
