/* Hora Calculator - Specific Styles */

/* Header bar (reuse daily-panchang pattern) */
.header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.header-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: -4px;
}

.header-spacer {
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-highlight);
    color: var(--text-primary);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Date Navigation */
.date-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-nav {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-family);
    transition: all 0.2s;
}

.btn-nav:hover {
    background: var(--bg-highlight);
    border-color: var(--border-input);
}

.btn-today {
    font-weight: 600;
    font-size: 0.78rem;
}

/* Pan Form Row */
.pan-form-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.pan-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pan-field label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pan-field-location {
    flex: 1;
    min-width: 200px;
}

/* Current Hora Banner */
.hora-current-banner {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    text-align: center;
    margin-bottom: 16px;
}

.hora-current-banner.active-hora {
    border-color: #7c3aed;
}

html.dark .hora-current-banner.active-hora {
    border-color: #a78bfa;
}

.hora-banner-title {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.hora-banner-planet {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hora-banner-time {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.hora-banner-significance {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* Sun Times Row */
.hora-sun-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hora-sun-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    box-shadow: var(--shadow-card);
}

.hora-sun-icon {
    font-size: 1.4rem;
}

.hora-sun-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hora-sun-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hora-sun-value.sunrise-color { color: #f59e0b; }
.hora-sun-value.sunset-color { color: #ef4444; }
html.dark .hora-sun-value.sunrise-color { color: #fbbf24; }
html.dark .hora-sun-value.sunset-color { color: #f87171; }

.hora-sun-duration {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Hora Table Section */
.hora-section-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hora-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.hora-table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hora-table-header {
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-table-header);
    border-bottom: 1px solid var(--border-color);
}

.hora-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.hora-table thead {
    background: var(--bg-table-header);
}

.hora-table th {
    padding: 8px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.hora-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    color: var(--text-primary);
}

.hora-table tbody tr:hover {
    background: var(--bg-highlight);
}

.hora-table tbody tr.hora-active {
    background: rgba(124, 58, 237, 0.08);
    font-weight: 600;
}

html.dark .hora-table tbody tr.hora-active {
    background: rgba(167, 139, 250, 0.12);
}

.hora-table tbody tr.hora-active td {
    color: var(--text-primary);
}

/* Planet color chips */
.hora-planet-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.hora-planet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.dot-sun { background: #f59e0b; }
.dot-moon { background: #a1a1aa; }
.dot-mars { background: #ef4444; }
.dot-mercury { background: #22c55e; }
.dot-jupiter { background: #f97316; }
.dot-venus { background: #ec4899; }
.dot-saturn { background: #6366f1; }

/* Hora number */
.hora-num {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-align: center;
    width: 24px;
}

/* Significance Card */
.hora-sig-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    padding: 16px 20px;
    margin-bottom: 16px;
}

.hora-sig-card .card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.hora-sig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.hora-sig-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--bg-table-header);
    border: 1px solid var(--border-color);
}

.hora-sig-planet-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.hora-sig-planet-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.hora-sig-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        height: 48px;
        padding: 0 12px;
    }

    .header-subtitle {
        display: none;
    }

    .hora-sun-row {
        flex-direction: column;
        gap: 8px;
    }

    .hora-tables-row {
        grid-template-columns: 1fr;
    }

    .pan-form-row {
        flex-direction: column;
        gap: 8px;
    }

    .pan-field-location {
        min-width: 100%;
    }

    .hora-current-banner {
        padding: 16px;
    }

    .hora-banner-planet {
        font-size: 1.4rem;
    }

    .hora-sig-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hora-sun-card {
        padding: 10px 12px;
    }

    .hora-table {
        font-size: 0.72rem;
    }

    .hora-table th,
    .hora-table td {
        padding: 6px 8px;
    }
}
