/* ================================
   CANDLE TIMES PAGE
   ================================ */

.shabbat250-candle-times-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.candle-times-header {
    text-align: center;
    margin-bottom: 48px;
}

.candle-times-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.candle-times-header .subtitle {
    font-size: 20px;
    color: #64748b;
    margin: 0;
}

/* Filters */
.candle-times-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group label svg {
    color: #3b82f6;
    flex-shrink: 0;
}

.filter-input {
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* AG Grid Container */
.candle-times-grid {
    width: 100%;
    height: 700px;
    margin: 32px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

/* AG Grid Customization */
.ag-theme-alpine {
    --ag-border-radius: 12px;
    --ag-header-background-color: #f8fafc;
    --ag-header-foreground-color: #1e293b;
    --ag-odd-row-background-color: #ffffff;
    --ag-row-hover-color: #f8fafc;
    --ag-border-color: #e2e8f0;
    --ag-font-size: 16px;
    --ag-row-border-color: #f1f5f9;
}

.ag-theme-alpine .ag-header {
    border-bottom: 2px solid #e2e8f0;
}

.ag-theme-alpine .ag-header-cell {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    padding-left: 16px;
    padding-right: 16px;
}

.ag-theme-alpine .ag-cell {
    display: flex;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    line-height: 1.5;
}

.ag-theme-alpine .ag-root-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ag-theme-alpine .ag-row {
    border-bottom: 1px solid #f1f5f9;
}

/* Remove extra scrollbar styles that might interfere */
.ag-theme-alpine .ag-body-horizontal-scroll {
    height: 12px !important;
}

.ag-theme-alpine .ag-body-horizontal-scroll-viewport {
    overflow-x: auto !important;
}

/* Footer */
.candle-times-footer {
    text-align: center;
    padding: 32px 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 32px;
}

.footer-note {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.footer-note strong {
    color: #1e293b;
}

.footer-cta {
    font-size: 16px;
    color: #475569;
    margin: 0;
}

.footer-cta a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.footer-cta a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shabbat250-candle-times-wrapper {
        padding: 30px 16px;
    }
    
    .candle-times-header h1 {
        font-size: 32px;
    }
    
    .candle-times-header .subtitle {
        font-size: 16px;
    }
    
    .candle-times-filters {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Make grid scrollable on mobile */
    .candle-times-grid {
        height: 600px;
        margin: 24px -16px; /* Go edge-to-edge on mobile */
        border-radius: 0;
    }
    
    .ag-theme-alpine {
        --ag-font-size: 14px;
    }
    
    .ag-theme-alpine .ag-root-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .ag-theme-alpine .ag-header-cell {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 12px;
    }
    
    .ag-theme-alpine .ag-cell {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Hide button text on mobile, show only on hover */
    .btn-add-calendar .cal-text {
        display: none;
    }
    
    .btn-add-calendar {
        padding: 10px !important;
    }
    
    .btn-add-calendar svg {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .candle-times-header h1 {
        font-size: 28px;
    }
    
    .candle-times-grid {
        height: 500px;
    }
    
    .ag-theme-alpine {
        --ag-font-size: 13px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .candle-times-grid {
        height: 650px;
    }
}