/* Custom styles for Astrology Calendar 2026 */

/* Base styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-attachment: fixed;
}

/* Section transitions */
.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navigation styles */
.nav-btn.active {
    background: var(--gradient-spiritual) !important;
    box-shadow: 0 8px 25px rgba(75, 0, 130, 0.6) !important;
    transform: translateY(-2px) !important;
}

.nav-btn.active .mystical-icon {
    filter: drop-shadow(0 0 15px rgba(221, 160, 221, 0.8)) !important;
}

/* Mobile menu */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Calendar styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #374151;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(17, 24, 39, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: rgba(139, 92, 246, 0.2);
    color: white;
}

.calendar-day.has-event {
    background: rgba(139, 92, 246, 0.3);
    color: white;
    font-weight: 600;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 50%;
    transform: translateX(50%);
    width: 6px;
    height: 6px;
    background: #fbbf24;
    border-radius: 50%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #374151;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: 1px;
}

.calendar-header-day {
    background: rgba(139, 92, 246, 0.8);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

/* Month tabs */
.month-tab.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

/* Event cards */
.event-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.6);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #db2777);
}

/* Animation for cards */
.animate-in {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-day {
        font-size: 12px;
        aspect-ratio: 1.2;
    }
    
    .calendar-header-day {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .event-card {
        padding: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 640px) {
    .calendar-grid {
        gap: 0.5px;
    }
    
    .calendar-day {
        font-size: 11px;
    }
    
    .calendar-day.has-event::after {
        width: 4px;
        height: 4px;
        bottom: 2px;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top: 2px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Special effects for eclipses and retrogrades */
.eclipse-card {
    position: relative;
    overflow: hidden;
}

.eclipse-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.retrograde-card {
    position: relative;
    overflow: hidden;
}

.retrograde-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background: rgba(17, 24, 39, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tooltip.show {
    opacity: 1;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-black\\/20,
    .bg-gradient-to-br {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}