/* static/css/number_list.css - Winning Numbers History List Page Specific Styles */

/* Header Style */
header {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 40px;
}

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

.logo-area a {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-area span {
    color: #fbbf24;
}

/* Breadcrumb Style */
.breadcrumb-wrapper {
    margin-bottom: 25px;
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: #fbbf24;
    font-weight: 500;
}

/* Top Heading and Subtitle */
.page-title-box {
    text-align: center;
    margin-bottom: 35px;
}

.page-title-box h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.page-title-box p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Featured Card Banner */
.featured-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 0; /* wrapped in Link */
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold-gradient);
}

.featured-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    border-color: #fbbf24;
    transform: translateY(-2px);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.featured-badge {
    background: rgba(222, 62, 53, 0.1);
    color: #de3e35;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(222, 62, 53, 0.2);
    letter-spacing: 0.5px;
}

.featured-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.featured-date {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Lotto Balls Layout */
.balls-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 20px 0;
    overflow-x: auto;
}

.balls-container::-webkit-scrollbar {
    display: none;
}

.lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
    font-size: 18px;
    text-shadow: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.plus-sign {
    font-size: 20px;
    color: #718096;
    font-weight: 700;
    margin: 0 5px;
    flex-shrink: 0;
}

/* Card Info grid */
.card-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14.5px;
    color: var(--text-secondary);
}

.info-group strong {
    color: #fff;
    font-weight: 700;
}

.info-group .highlight {
    color: #fbbf24;
    font-weight: 850;
}

/* List Cards Grid */
.cards-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.round-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.round-item-card:hover {
    transform: translateY(-3px);
    border-color: #fbbf24;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

.round-title-link {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.round-title-link:hover {
    color: #de3e35;
}

.card-body-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card-right-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(222, 62, 53, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(222, 62, 53, 0.2);
    color: #de3e35;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-detail:hover {
    background: rgba(222, 62, 53, 0.15);
    border-color: rgba(222, 62, 53, 0.4);
    box-shadow: 0 4px 12px rgba(222, 62, 53, 0.1);
    color: #b91c1c;
}

/* Pagination HTML Style */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.pagination-link, .pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-link:hover, .pagination-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.pagination-link.active {
    background: #fbbf24;
    color: #090d16;
    border-color: #fbbf24;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.25);
}

.pagination-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    background: transparent;
}

/* FAQ Styling */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    margin-top: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-title {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.03);
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    padding: 18px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: var(--font-family);
    min-height: 48px;
}

.faq-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #818cf8;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 18px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-answer strong {
    color: #fff;
}

/* Footer Style */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 50px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: #fff;
}

/* Clickable Card Link Wrappers */
.featured-card-link, .round-item-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    margin-bottom: 40px;
}
.round-item-link {
    margin-bottom: 0;
}
.featured-card-link:hover, .round-item-link:hover {
    text-decoration: none !important;
    color: inherit !important;
}

@media (max-width: 768px) {
    .card-body-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }
    .page-title-box h1 {
        font-size: 26px;
    }
    .featured-card {
        padding: 20px;
        margin-bottom: 0;
    }
    .featured-card-link {
        margin-bottom: 30px;
    }
    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        border-bottom: none;
        margin-bottom: 10px;
        padding-bottom: 0;
    }
    .featured-date {
        font-size: 13px;
    }

    .round-item-card {
        padding: 20px;
        gap: 12px;
    }
    
    .card-top-bar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
    }
    
    .round-title-link {
        font-size: 17px;
        font-weight: 800;
    }
    
    .balls-container {
        margin: 5px 0;
        gap: 5px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .balls-container .lotto-ball {
        width: 32px !important;
        height: 32px !important;
        font-size: 13px !important;
    }
    
    .plus-sign {
        font-size: 14px;
        margin: 0 2px;
    }
    
    .card-right-action {
        width: 100%;
        align-items: flex-start;
        gap: 10px;
        border-top: 1px dashed #e2e8f0;
        padding-top: 12px;
        margin-top: 2px;
    }
    
    .card-info-row {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        font-size: 13.5px;
    }
    
    .card-right-action .btn-detail {
        display: inline-flex;
        padding: 5px 12px;
        font-size: 12px;
        align-self: flex-end;
    }
}
