/* ============================================================
   Solar Sunrise & Sunset Module Styles
   ============================================================ */

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

.sun-breadcrumb-nav {
    margin-bottom: 20px;
}

.sun-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    padding: 12px 18px;
    margin: 0;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.sun-breadcrumb-item + .sun-breadcrumb-item::before {
    content: "›";
    padding: 0 10px;
    color: #94a3b8;
    font-weight: 600;
}

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

.sun-breadcrumb-item a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.sun-breadcrumb-item.active {
    color: #475569;
}

/* Page Header */
.sun-header-section {
    margin-bottom: 24px;
}

.sun-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

/* Control Bar: Location & Geo */
.sun-controls-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sun-dropdown-wrapper {
    position: relative;
    min-width: 220px;
    flex: 1 1 220px;
    max-width: 320px;
}

.sun-dropdown-btn {
    width: 100%;
    height: 58px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sun-dropdown-btn:hover,
.sun-dropdown-btn.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sun-dropdown-info {
    display: flex;
    flex-direction: column;
}

.sun-dropdown-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.sun-dropdown-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.sun-dropdown-arrow {
    color: #64748b;
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.sun-dropdown-btn.active .sun-dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Modal */
.sun-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 1050;
    display: none;
    overflow: hidden;
    animation: sunFadeIn 0.18s ease-out;
}

.sun-dropdown-menu.show {
    display: block;
}

@keyframes sunFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sun-search-box {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sun-search-input {
    width: 100%;
    padding: 8px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sun-search-input:focus {
    border-color: #2563eb;
}

.sun-list-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
}

.sun-group-title {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.sun-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    transition: background 0.15s ease;
}

.sun-list-item:hover {
    background: #f8fafc;
    color: #2563eb;
}

.sun-list-item.selected {
    color: #2563eb;
    font-weight: 700;
    background: #eff6ff;
}

.sun-list-item .fa-check {
    color: #2563eb;
    font-size: 13px;
}

/* Geo Location Button */
.sun-geo-btn {
    height: 58px;
    min-height: 58px;
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.sun-geo-btn:hover {
    background: #f8fafc;
    border-color: #ef4444;
    color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.sun-geo-btn .sun-geo-icon {
    color: #ef4444;
    font-size: 18px;
}

.sun-geo-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Tabs: Sunrise / Sunset View Toggle */
.sun-tabs-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.sun-tab-toggle {
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sun-tab-toggle.active {
    background: #fff7ed;
    border-color: #ffedd5;
    color: #c2410c;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.1);
}

.sun-tab-toggle.inactive {
    background: #f1f5f9;
    color: #475569;
}

.sun-tab-toggle.inactive:hover {
    background: #e2e8f0;
    color: #0f172a;
    text-decoration: none;
}

/* Hero Cards Grid */
.sun-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .sun-hero-grid {
        grid-template-columns: 1fr;
    }
}

.sun-hero-card {
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    border-radius: 18px;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sun-hero-card.tomorrow-card {
    border-color: #e2e8f0;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.sun-card-badge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sun-card-tag {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.sun-card-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.sun-card-body-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.sun-card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.25);
}

.sun-card-icon-box.sunset-gradient {
    background: linear-gradient(135deg, #ef4444 0%, #9333ea 100%);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.25);
}

.sun-time-display {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.sun-card-location-label {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 4px;
}

.sun-card-location-label strong {
    color: #0f172a;
}

/* Card Sub Details */
.sun-card-subdetails {
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.8;
}

.sun-sub-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}

.sun-sub-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sun-sub-item strong {
    color: #0f172a;
}

.sun-diff-pill {
    display: inline-block;
    color: #64748b;
    font-size: 13px;
}

.sun-nextday-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #d97706;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Quick Metrics 4 Cards */
.sun-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .sun-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sun-quick-grid {
        grid-template-columns: 1fr;
    }
}

.sun-quick-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sun-quick-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.sun-quick-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sun-dot-sky {
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.sun-dot-blue {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sun-dot-golden {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.sun-dot-sunset {
    background: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.sun-quick-title {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 3px;
    font-weight: 500;
}

.sun-quick-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

/* Section Title */
.sun-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sun-section-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Styled Tables */
.sun-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 34px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.sun-table-scroll {
    overflow-x: auto;
}

.sun-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.sun-data-table thead {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.sun-data-table th {
    padding: 14px 18px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.sun-data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.sun-data-table tbody tr:last-child {
    border-bottom: none;
}

.sun-data-table tbody tr:hover {
    background: #f8fafc;
}

.sun-data-table td {
    padding: 13px 18px;
    color: #334155;
    white-space: nowrap;
}

.sun-data-table td.sun-bold-time {
    font-weight: 800;
    color: #0f172a;
    font-size: 15px;
}

.sun-province-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.sun-province-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Rich SEO Article Section */
.sun-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.sun-article-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.sun-article-card h2:first-child {
    margin-top: 0;
}

.sun-article-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 18px;
    margin-bottom: 8px;
}

.sun-article-card p {
    font-size: 14.5px;
    line-height: 1.75;
    color: #475569;
    margin-bottom: 14px;
}

.sun-article-card ul {
    font-size: 14.5px;
    line-height: 1.8;
    color: #475569;
    padding-left: 22px;
    margin-bottom: 16px;
}

/* FAQ Accordion */
.sun-faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 0;
}

.sun-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sun-faq-question {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sun-faq-question:hover {
    color: #2563eb;
}

.sun-faq-answer {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin-top: 10px;
}
