/* Stars background */
.stars {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 45% 75%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 65% 15%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 5% 50%, rgba(255, 200, 100, 0.6), transparent),
        radial-gradient(2px 2px at 55% 35%, rgba(200, 200, 255, 0.5), transparent),
        radial-gradient(2px 2px at 80% 70%, rgba(255, 200, 150, 0.4), transparent);
}

/* Loading star pulse */
@keyframes pulse-star {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}
.loading-star {
    animation: pulse-star 1.5s ease-in-out infinite;
    display: inline-block;
}

/* Skeleton loading */
.loading-skeleton {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    height: 120px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Prediction text fade-in */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.prediction-text {
    animation: fade-in 0.4s ease-out;
}

/* Score bar for best days */
.score-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #f59e0b, #ef4444);
    transition: width 0.5s ease-out;
}

/* Form inputs - fix date/time picker colors */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.5);
    cursor: pointer;
}

/* Select dropdown fix for dark bg */
select option {
    background-color: #1e1b4b;
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ---- Astrology Tables ---- */
.astro-table {
    border-collapse: separate;
    border-spacing: 0;
}
.astro-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.astro-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease;
}
.astro-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.astro-table tbody td {
    padding: 0.5rem 0.75rem;
}

/* Responsive table scroll hint */
@media (max-width: 640px) {
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }
    .astro-table {
        min-width: 520px;
    }
}

/* Planet dignity badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-exalted { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-own     { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-debilitated { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-neutral { background: rgba(255, 255, 255, 0.05); color: #9ca3af; }

.badge-favorable   { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-unfavorable { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.badge-retro { background: rgba(245, 158, 11, 0.2); color: #fbbf24; font-size: 0.6rem; }
.badge-direct { background: rgba(255, 255, 255, 0.05); color: #6b7280; font-size: 0.6rem; }

/* ---- Prediction Preview Fade ---- */
.prediction-preview {
    position: relative;
}
.preview-text-fade {
    position: relative;
    overflow: hidden;
}
.preview-text-fade::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5em;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(15, 23, 42, 0.7) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
    pointer-events: none;
}
.preview-cta {
    text-align: center;
    padding-top: 0.5rem;
}

/* Yoga card */
.yoga-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: border-color 0.2s ease;
}
.yoga-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

/* House lord card */
.house-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
    transition: border-color 0.2s ease;
}
.house-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

/* ---- Collapsible Section Headers ---- */
.section-header {
    transition: background 0.15s ease;
    border-radius: 1rem;
}
.section-header:hover {
    background: rgba(255, 255, 255, 0.03);
}
.section-arrow {
    transition: transform 0.2s ease;
}
.section-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* ---- Feature Pills (hero) ---- */
.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #fbbf24;
    white-space: nowrap;
}

/* ---- Gun Milan Score Circle ---- */
.compat-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(236, 72, 153, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(236, 72, 153, 0.05);
    transition: border-color 0.3s ease;
}

/* ---- Kuta Score Card ---- */
.kuta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem;
    transition: border-color 0.2s ease;
}
.kuta-card:hover {
    border-color: rgba(236, 72, 153, 0.3);
}

/* ---- Kuta Progress Bar ---- */
.kuta-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.kuta-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

/* ---- Compatibility Tab ---- */
.compat-tab {
    transition: all 0.2s ease;
}
