/* Schedule Grid */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.schedule-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

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

.schedule-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.schedule-lottery {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.schedule-numbers {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.number-ball {
    width: 36px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    background-color: var(--primary-color);
    margin: 2px;
}

.number-ball.red {
    background-color: #dc2626;
}

.number-ball.blue {
    background-color: #2563eb;
}

.number-ball.green {
    background-color: #059669;
}

.number-ball.orange {
    background-color: #ea580c;
}

.number-ball.purple {
    background-color: #9333ea;
}

.schedule-status {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.schedule-status.live {
    color: var(--success-color);
}

.schedule-status.upcoming {
    color: var(--warning-color);
}

/* Week Navigation */
.date-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.date-range span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.week-navigation {
    display: flex;
    gap: 0.5rem;
}

.week-navigation .btn {
    padding: 0.5rem;
    width: 40px;
    height: 40px;
}

/* Results Table */
.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table th,
.results-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

.results-table tr:hover {
    background-color: var(--bg-secondary);
}

.time-column {
    background-color: var(--text-primary);
    color: white;
    font-weight: 600;
    width: 80px;
}

.day-column {
    min-width: 100px;
}

.day-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.day-date {
    font-weight: 600;
    color: var(--text-primary);
}

.result-cell {
    position: relative;
}

.result-numbers {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-ball {
    width: 28px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    background-color: var(--secondary-color);
    margin: 1px;
}

.mini-ball:contains('=') {
    background-color: var(--success-color);
}

.mini-ball:contains('x') {
    background-color: var(--error-color);
}

/* Prize Information */
.prize-info {
    background-color: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.prize-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.prize-amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Historical Results Table */
.historical-table {
    margin-top: 1rem;
}

.historical-table .results-table th {
    background-color: var(--primary-color);
    color: white;
}

.draw-date {
    font-weight: 500;
    color: var(--text-primary);
}

.draw-type {
    font-size: 0.75rem;
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sorting Controls */
.sort-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.sort-label {
    font-weight: 500;
    color: var(--text-primary);
}

.sort-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    background-color: var(--bg-primary);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

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

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Status Indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-live {
    background-color: var(--success-color);
    animation: pulse 2s infinite;
}

.status-completed {
    background-color: var(--secondary-color);
}

.status-upcoming {
    background-color: var(--warning-color);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Daily Wisdom Styles */
.daily-wisdom {
    margin-top: 2rem;
}

.wisdom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.wisdom-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wisdom-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wisdom-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.wisdom-time i {
    font-size: 1rem;
}

.wisdom-quote {
    position: relative;
}

.wisdom-quote i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.wisdom-quote p {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
    padding-left: 1rem;
}

/* Responsive Number Display */
@media (max-width: 480px) {
    .schedule-numbers {
        justify-content: center;
    }
    
    .number-ball {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .mini-ball {
        width: 20px;
        height: 20px;
        font-size: 0.6875rem;
    }

    .wisdom-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .wisdom-card {
        padding: 1rem;
    }
}

/* Ad Zone Styles */
.ad-zone {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.ad-container {
    position: relative;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-label {
    position: absolute;
    top: 4px;
    right: 8px;
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    background-color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.ad-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.ad-placeholder {
    color: #495057;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Ad Zone Sizes */
.ad-banner .ad-container {
    width: 728px;
    height: 90px;
    max-width: 100%;
}

.ad-rectangle .ad-container {
    width: 300px;
    height: 250px;
}

.ad-sidebar .ad-container {
    width: 160px;
    height: 600px;
}

.ad-header-right .ad-container {
    width: 250px;
    height: 60px;
}

.ad-footer .ad-container {
    width: 728px;
    height: 90px;
    max-width: 100%;
    margin-top: 1rem;
}

/* Weekly Content Wrapper for Sidebar Ad */
.weekly-content-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.weekly-content-wrapper .results-table-container {
    flex: 1;
}

/* Header Layout for Ad */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-content .logo {
    flex: 0 0 auto;
}

.header-content .nav {
    flex: 1;
}

.header-content .ad-zone {
    flex: 0 0 auto;
    margin: 0;
}

/* Page Content Styles for Legal Pages */
.page-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-content h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.policy-section ul, .policy-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* About Page Specific Styles */
.about-section {
    margin-bottom: 2.5rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.vision, .mission {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.service-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-item i {
    color: var(--primary-color);
    width: 1.25rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .ad-banner .ad-container,
    .ad-footer .ad-container {
        width: 320px;
        height: 50px;
    }
    
    .ad-rectangle .ad-container {
        width: 300px;
        height: 250px;
    }
    
    .ad-sidebar {
        display: none; /* Hide sidebar ads on mobile */
    }
    
    .weekly-content-wrapper {
        flex-direction: column;
    }
    
    .header-content .ad-zone {
        display: none; /* Hide header right ad on mobile */
    }
    
    .vision-mission {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        justify-content: center;
    }
}
