/* ============================================
   FIRSTSCORESPORT.COM - Minnesota Online Casinos
   Homepage Stylesheet
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* === LAYOUT === */
.site-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .site-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.5px;
}

.site-logo span {
    color: #059669;
}

/* === HERO / H1 SECTION === */
.hero-section {
    padding: 32px 0 24px;
    text-align: center;
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

/* === AUTHOR SECTION (under H1) === */
.author-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.author-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.author-card .author-info {
    text-align: left;
}

.author-card .author-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}

.author-card .author-date {
    font-size: 13px;
    color: #6b7280;
}

/* === TOPLIST === */
.toplist-section {
    padding: 24px 0;
}

.toplist-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.toplist-entry:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

/* Gold border for #1 */
.toplist-entry.rank-1 {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.toplist-rank {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toplist-entry.rank-1 .toplist-rank {
    background: #f59e0b;
    color: #1a1a2e;
}

.toplist-logo {
    flex-shrink: 0;
    width: 80px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
}

.toplist-info {
    flex: 1;
    min-width: 0;
}

.toplist-brand {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.toplist-bonus {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
}

.toplist-cta {
    flex-shrink: 0;
}

.toplist-cta a {
    display: inline-block;
    padding: 10px 24px;
    background: #059669;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.toplist-cta a:hover {
    background: #047857;
    color: #ffffff;
    transform: translateY(-1px);
}

/* === CONTENT SECTIONS === */
.content-section {
    padding: 32px 0;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #059669;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-section p {
    margin-bottom: 16px;
    color: #374151;
}

/* === CASINO REVIEW CARDS === */
.casino-review {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.casino-review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.casino-review-header img {
    width: 64px;
    height: 40px;
    object-fit: contain;
}

.casino-review-header h3 {
    margin: 0;
    font-size: 20px;
}

.casino-review-header .award-tag {
    font-size: 13px;
    color: #059669;
    font-weight: 600;
}

.casino-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.casino-stats .stat-label {
    color: #6b7280;
    font-weight: 500;
}

.casino-stats .stat-value {
    color: #1a1a2e;
    font-weight: 600;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.pros h4, .cons h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pros h4 { color: #059669; }
.cons h4 { color: #dc2626; }

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    font-size: 14px;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
    color: #374151;
}

.pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

.cons li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: 700;
}

.review-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 32px;
    background: #059669;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.review-cta:hover {
    background: #047857;
    color: #ffffff;
}

/* === RATING BARS === */
.rating-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin: 16px 0;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.rating-item .label {
    color: #6b7280;
}

.rating-item .score {
    font-weight: 700;
    color: #1a1a2e;
}

/* === COMPARISON TABLE === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.comparison-table th {
    background: #1a1a2e;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.comparison-table tr:nth-child(even) td {
    background: #f9fafb;
}

.comparison-table tr:hover td {
    background: #f0fdf4;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 32px 0;
}

.faq-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #059669;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question::after {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: #6b7280;
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: "−";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* === HOW WE RATE === */
.how-we-rate {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.how-we-rate h3 {
    margin-top: 0;
}

.criteria-list {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.criteria-list li:last-child {
    border-bottom: none;
}

.criteria-list li strong {
    color: #1a1a2e;
}

/* === RESPONSIBLE GAMBLING === */
.responsible-gambling {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: center;
}

.responsible-gambling h3 {
    color: #dc2626;
    margin-top: 0;
    margin-bottom: 8px;
}

.responsible-gambling p {
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 8px;
}

.age-badge {
    display: inline-block;
    background: #dc2626;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 8px;
}

/* === FOOTER === */
.site-footer {
    background: #1a1a2e;
    color: #9ca3af;
    padding: 32px 0;
    margin-top: 48px;
    font-size: 13px;
    text-align: center;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer a {
    color: #9ca3af;
}

.site-footer a:hover {
    color: #ffffff;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 24px;
    }

    .toplist-entry {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

    .toplist-rank {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .toplist-logo {
        width: 60px;
        height: 36px;
    }

    .toplist-info {
        flex: 1;
        min-width: 0;
    }

    .toplist-brand {
        font-size: 14px;
    }

    .toplist-bonus {
        font-size: 12px;
    }

    .toplist-cta {
        width: 100%;
    }

    .toplist-cta a {
        display: block;
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .casino-stats {
        grid-template-columns: 1fr;
    }

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

    .comparison-table {
        display: block;
        overflow-x: auto;
    }

    .content-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 22px;
    }

    .toplist-entry {
        padding: 12px;
    }

    .toplist-logo {
        width: 50px;
        height: 30px;
    }

    .casino-review {
        padding: 16px;
    }
}
