/* ================================================= */
/* RASHIFAL PAGE STYLES (Fixed: Mandala Theme)       */
/* ================================================= */

/* --- 1. HERO SECTION --- */
.rashifal-hero-royal {
    position: relative;
    padding: 60px 0 150px 0;
    margin-bottom: -100px; /* Overlap effect */
    background-color: var(--astro-primary); /* Maroon Background */
    border-bottom: 5px solid var(--astro-accent);
    color: white;
    overflow: hidden; /* Keeps mandala inside */
}

/* Rotating Mandala Background (Standardized) */
.mandala-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1500px; /* Full Coverage */
    height: 1500px;
    background-image: url('images/mandala.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.1; 
    animation: spin-mandala 60s linear infinite;
    z-index: 1;
}

.mandala-bg:empty {
    background: radial-gradient(circle, var(--astro-accent) 2px, transparent 2.5px);
    background-size: 30px 30px;
}

@keyframes spin-mandala {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Content Wrapper */
.container {
    position: relative;
    z-index: 2; /* Ensures text stays above mandala */
}

.date-badge-wrapper { margin-bottom: 20px; text-align: center; }

.current-date-badge {
    background-color: var(--astro-accent); /* Gold */
    color: var(--astro-primary); /* Maroon */
    font-weight: 800;
    padding: 10px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    display: inline-block;
    max-width: 95%; 
    font-size: 1.1rem;
    white-space: normal; 
    line-height: 1.4;
}

.royal-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.separator-line {
    width: 80px; height: 4px;
    background-color: var(--astro-accent);
    border-radius: 2px; margin: 20px auto;
}

.royal-hero-sub {
    font-size: 1.2rem; color: #eee;
    max-width: 800px; margin: 0 auto;
}

/* --- 2. ZODIAC GRID --- */
.zodiac-royal-section {
    position: relative;
    z-index: 5;
    padding-bottom: 100px;
    background-color: var(--astro-light);
}

/* --- CARD STYLING --- */
.zodiac-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    height: 420px; 
    border: 2px solid var(--astro-primary); 
    box-shadow: 0 10px 30px rgba(92, 0, 0, 0.1); 
    transition: all 0.4s ease;
    display: flex; flex-direction: column;
}

.zodiac-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(92, 0, 0, 0.25);
    border-color: var(--astro-accent);
}

/* --- 3. VIDEO HEADER --- */
.zodiac-video-header {
    height: 50%;
    flex: 0 0 50%; 
    position: relative; 
    background: #000;
    border-bottom: 4px solid var(--astro-accent);
    overflow: hidden;
}

.zodiac-video-header video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.9; z-index: 1; 
}

.zodiac-poster-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 2; 
    transition: opacity 0.8s ease-in-out;
    opacity: 1;
}

.poster-hidden { opacity: 0; pointer-events: none; }

.zodiac-card:hover .zodiac-video-header video { 
    transform: scale(1.1); transition: transform 0.5s ease;
}

/* --- 4. CARD CONTENT --- */
.zodiac-body {
    height: 50%;
    flex: 0 0 50%;
    padding: 20px 20px;
    text-align: center;
    display: flex; 
    flex-direction: column;
    justify-content: center;
}

.zodiac-title {
    font-size: 1.6rem; font-weight: 800;
    color: var(--astro-primary);
    margin-bottom: 10px; text-transform: uppercase;
}

.zodiac-preview {
    font-size: 0.95rem; color: #555;
    line-height: 1.5; margin-bottom: 15px;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

.zodiac-btn {
    margin-top: auto;
    background: transparent;
    color: var(--astro-primary);
    border: 2px solid var(--astro-primary);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.85rem; font-weight: 700;
    text-transform: uppercase; transition: 0.3s;
    text-decoration: none; cursor: pointer;
    align-self: center;
}

.zodiac-btn:hover {
    background: var(--astro-primary);
    color: var(--astro-accent);
}

/* --- 5. MODAL STYLES --- */
.rashifal-modal-content {
    background-color: #fff;
    border: 2px solid var(--astro-accent);
    border-radius: 10px;
    overflow: hidden;
}

.modal-header-custom {
    background: var(--astro-primary); color: white;
    border-bottom: 4px solid var(--astro-accent);
    padding: 15px 20px; display: flex; justify-content: space-between; align-items: center;
}
.modal-title-custom { font-weight: 800; text-transform: uppercase; margin: 0; }

.modal-video-box {
    width: 100%; height: 100%; min-height: 300px;
    background: black; position: relative;
    border-right: 4px solid var(--astro-accent);
}
.modal-video-box video { width: 100%; height: 100%; object-fit: cover; }

.modal-body-custom {
    padding: 30px; max-height: 500px; overflow-y: auto; background: var(--astro-light);
}

.prediction-label {
    color: var(--astro-primary); font-weight: 700;
    border-bottom: 2px solid #ddd; padding-bottom: 5px;
    margin-bottom: 10px; display: inline-block;
}
.modal-text { font-size: 1.1rem; line-height: 1.8; color: #333; margin-bottom: 20px; }

.text-gold { color: #FFD700 !important; }

/* --- 7. RESPONSIVE --- */
@media (max-width: 991px) {
    .modal-video-box { 
        height: 250px; min-height: auto;
        border-right: none; border-bottom: 4px solid var(--astro-accent); 
    }
}

@media (max-width: 576px) {
    .current-date-badge { font-size: 0.9rem; padding: 8px 15px; }
    .royal-hero-title { font-size: 2.2rem; }
    .modal-body-custom { padding: 20px; }
    .zodiac-card { height: 400px; } 
    /* Adjust mandala on mobile */
    .mandala-bg { width: 800px; height: 800px; }
}

/* --- ENHANCED MODERN SKELETON LOADER --- */
.skeleton-card {
    background: #fdfdfd;
    border-radius: 15px;
    height: 420px;
    border: 2px solid #eecaca; /* Light maroon tint to match theme */
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* The Animated Pulse Effect (Stronger Contrast) */
.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0, 
        rgba(224, 224, 224, 0.8) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Elements inside the ghost card */
.skeleton-video { height: 50%; background: #ececec; }
.skeleton-body { padding: 25px; height: 50%; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.skeleton-title { width: 60%; height: 25px; background: #e0e0e0; border-radius: 4px; }
.skeleton-text { width: 90%; height: 12px; background: #eeeeee; border-radius: 4px; }
.skeleton-btn { width: 120px; height: 35px; background: #e0e0e0; border-radius: 50px; margin-top: auto; }