/* Configuration Loading Enhancements */

/* Loading state styles */
body:not(.config-loaded) {
    opacity: 0.8;
}

body.config-loaded {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Loading animation for placeholder text */
body:not(.config-loaded) *:contains("Loading...") {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Smooth transitions for content updates */
.logo h2,
.page-header h1,
.page-header p,
.hero-content h1,
.hero-content p,
.service-card h3,
.service-card p,
.about-text h2,
.about-text p,
.stat h3,
.stat p,
.footer-section h3,
.footer-section p {
    transition: all 0.3s ease-in-out;
}

/* Ensure proper spacing and layout consistency */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive page header */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

/* Enhanced durga placeholder styles */
.durga-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 30px;
}

.durga-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.durga-placeholder h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.durga-placeholder p {
    margin: 5px 0;
    opacity: 0.9;
}

/* Enhanced social links styling */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-link i {
    font-size: 1.2rem;
}

/* Enhanced map section */
.map-info h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.map-placeholder p {
    margin: 10px 0;
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.map-link:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Enhanced gallery filters */
.gallery-filter {
    padding: 30px 0;
    background: #f8f9fa;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #007cba;
    background: transparent;
    color: #007cba;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #007cba;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,124,186,0.3);
}

/* Loading state improvements */
.config-loaded .durga-placeholder[style*="display: none"] {
    display: none !important;
}

/* Print styles */
@media print {
    .page-header {
        background: none !important;
        color: #333 !important;
    }
    
    .social-links,
    .theme-switcher,
    .hamburger {
        display: none !important;
    }
}
