/**
 * Panchang Page Styles
 * Reusable CSS for all language-specific panchang pages
 * (English, Gujarati, Hindi, etc.)
 */

/* ============================================
   PANCHANG CARD STYLES
   ============================================ */

.panchang-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,245,255,0.98) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.panchang-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(103, 58, 183, 0.15);
}

/* ============================================
   REALISTIC MOON PHASE VISUALIZATION
   ============================================ */

.moon-phase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Base moon - realistic lunar surface colors */
.moon-phase-visual {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    /* Realistic moon surface: silver-gray with subtle warm tones */
    background: 
        radial-gradient(circle at 30% 30%, 
            #e8e4dc 0%, 
            #d4cfc5 20%, 
            #bfb8ac 40%, 
            #a9a196 60%, 
            #948c80 80%, 
            #7f776b 100%);
    box-shadow: 
        inset -6px -6px 15px rgba(0,0,0,0.35),
        inset 3px 3px 10px rgba(255,255,255,0.25),
        0 0 25px rgba(200,195,180,0.4),
        0 5px 20px rgba(0,0,0,0.35);
    overflow: hidden;
}

/* Moon surface texture - maria (dark patches) and craters */
.moon-phase-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-image: 
        /* Large maria (dark patches) */
        radial-gradient(ellipse 40% 30% at 35% 40%, rgba(80,75,65,0.25) 0%, transparent 70%),
        radial-gradient(ellipse 25% 20% at 65% 30%, rgba(70,65,55,0.2) 0%, transparent 60%),
        radial-gradient(ellipse 30% 25% at 50% 70%, rgba(75,70,60,0.18) 0%, transparent 65%),
        /* Medium craters */
        radial-gradient(circle at 25% 25%, rgba(60,55,45,0.3) 0%, rgba(90,85,75,0.1) 4%, transparent 8%),
        radial-gradient(circle at 60% 35%, rgba(55,50,40,0.25) 0%, rgba(100,95,85,0.08) 3%, transparent 6%),
        radial-gradient(circle at 45% 65%, rgba(65,60,50,0.28) 0%, rgba(95,90,80,0.1) 5%, transparent 10%),
        radial-gradient(circle at 75% 55%, rgba(50,45,35,0.2) 0%, transparent 5%),
        /* Small craters */
        radial-gradient(circle at 30% 75%, rgba(70,65,55,0.22) 0%, transparent 4%),
        radial-gradient(circle at 80% 25%, rgba(60,55,45,0.15) 0%, transparent 3%),
        radial-gradient(circle at 15% 50%, rgba(65,60,50,0.18) 0%, transparent 4%),
        radial-gradient(circle at 55% 20%, rgba(55,50,40,0.12) 0%, transparent 3%),
        radial-gradient(circle at 70% 75%, rgba(60,55,45,0.15) 0%, transparent 3%);
    z-index: 1;
}

/* Shadow overlay for phases */
.moon-phase-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 2;
}

/* ============================================
   MOON PHASES - Shadow Configurations
   ============================================ */

/* New Moon (Amavasya) - fully dark with slight edge glow */
.moon-new .moon-phase-visual {
    background: radial-gradient(circle at 50% 50%, #1a1815 0%, #0d0c0a 70%, #050504 100%);
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.8),
        0 0 15px rgba(100,95,85,0.15),
        0 5px 20px rgba(0,0,0,0.5);
}
.moon-new .moon-phase-visual::before {
    opacity: 0.1;
}
.moon-new .moon-phase-visual::after {
    background: transparent;
}

/* Waxing Crescent - thin sliver lit on right */
.moon-waxing-crescent .moon-phase-visual::after {
    background: linear-gradient(90deg, 
        rgba(8,8,10,0.97) 0%, 
        rgba(8,8,10,0.97) 65%, 
        rgba(8,8,10,0.8) 75%,
        transparent 88%);
}

/* First Quarter - right half lit */
.moon-first-quarter .moon-phase-visual::after {
    background: linear-gradient(90deg, 
        rgba(8,8,10,0.97) 0%, 
        rgba(8,8,10,0.97) 46%, 
        rgba(8,8,10,0.5) 49%,
        transparent 53%);
}

/* Waxing Gibbous - mostly lit, shadow on left */
.moon-waxing-gibbous .moon-phase-visual::after {
    background: linear-gradient(90deg, 
        rgba(8,8,10,0.97) 0%, 
        rgba(8,8,10,0.85) 18%, 
        rgba(8,8,10,0.4) 28%,
        transparent 40%);
}

/* Full Moon (Purnima) - fully lit with warm golden glow */
.moon-full .moon-phase-visual {
    background: 
        radial-gradient(circle at 35% 35%, 
            #fffdf5 0%, 
            #f8f3e0 15%, 
            #efe8cc 30%, 
            #e5dcb8 50%, 
            #d9cea4 70%, 
            #ccc090 100%);
    box-shadow: 
        inset -4px -4px 12px rgba(0,0,0,0.15),
        inset 3px 3px 8px rgba(255,255,255,0.35),
        0 0 50px rgba(255,248,200,0.5),
        0 0 80px rgba(255,240,180,0.35),
        0 0 120px rgba(255,235,160,0.2),
        0 5px 25px rgba(0,0,0,0.25);
}
.moon-full .moon-phase-visual::after {
    background: transparent;
}

/* Waning Gibbous - mostly lit, shadow on right */
.moon-waning-gibbous .moon-phase-visual::after {
    background: linear-gradient(270deg, 
        rgba(8,8,10,0.97) 0%, 
        rgba(8,8,10,0.85) 18%, 
        rgba(8,8,10,0.4) 28%,
        transparent 40%);
}

/* Last Quarter - left half lit */
.moon-last-quarter .moon-phase-visual::after {
    background: linear-gradient(270deg, 
        rgba(8,8,10,0.97) 0%, 
        rgba(8,8,10,0.97) 46%, 
        rgba(8,8,10,0.5) 49%,
        transparent 53%);
}

/* Waning Crescent - thin sliver lit on left */
.moon-waning-crescent .moon-phase-visual::after {
    background: linear-gradient(270deg, 
        rgba(8,8,10,0.97) 0%, 
        rgba(8,8,10,0.97) 65%, 
        rgba(8,8,10,0.8) 75%,
        transparent 88%);
}

/* Moon phase label */
.moon-phase-label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Responsive sizing */
@media (min-width: 640px) {
    .moon-phase-visual {
        width: 90px;
        height: 90px;
    }
    
    .moon-phase-label {
        font-size: 0.875rem;
    }
}

/* ============================================
   ANIMATED GRADIENT BORDER
   ============================================ */

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #673AB7, #FF9800, #7C4DFF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================
   FAQ ACCORDION STYLES
   ============================================ */

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(103, 58, 183, 0.1);
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
}

