/* Maintenance Page CSS - Enhanced with Animations */

:root {
    --primary-color: #009c49;         /* SAC Green */
    --primary-dark: #007537;
    --accent-color: #d4a017;         /* Harvest Gold */
    --light-color: #f8f9fa;
    --dark-color: #1b4332;          /* Forest */
    --gray-color: #6c757d;
    --meadow-light: #f1f8e9;        /* Soft green background */
    --meadow-border: #d6eadf;       /* Soft green border */
    --card-border: #e7f5ee;         /* Subtle card border */
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--meadow-light) 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a2a2a;
    position: relative;
    padding: 2rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Animated Background Elements */
.background-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50% 0 50% 0;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.leaf-1 { top: 10%; left: 10%; animation-delay: 0s; }
.leaf-2 { top: 20%; right: 15%; animation-delay: 1s; }
.leaf-3 { top: 60%; left: 5%; animation-delay: 2s; }
.leaf-4 { top: 80%; right: 10%; animation-delay: 3s; }
.leaf-5 { top: 30%; left: 80%; animation-delay: 4s; }
.leaf-6 { top: 70%; right: 80%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Subtle background texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><g fill="none" fill-rule="evenodd" opacity="0.06"><path d="M20 50c6-10 14-10 20 0" stroke="%23009c49" stroke-width="2" stroke-linecap="round"/><path d="M40 30c6-10 14-10 20 0" stroke="%23007537" stroke-width="2" stroke-linecap="round"/></g></svg>') repeat;
    z-index: 0;
}

/* Main Container */
.maintenance-container {
    text-align: center;
    z-index: 10;
    position: relative;
    max-width: 800px;
    width: 100%;
    padding: 3rem 2.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--meadow-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideInUp 800ms ease-out;
    margin: auto;
}

@keyframes slideInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Logo Section */
.logo {
    margin-bottom: 2rem;
}

.logo-image {
    max-height: 100px;
    width: auto;
    animation: logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 156, 73, 0.3)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 156, 73, 0.6)); }
}

/* Maintenance Icon */
.maintenance-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: bounceIn 1s ease-out;
}

.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Typography */
.maintenance-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
    background: linear-gradient(45deg, var(--primary-color), var(--dark-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.maintenance-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #4f5d53;
    font-weight: 500;
}

.maintenance-message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #33423a;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Countdown Container */
.countdown-container {
    background: linear-gradient(135deg, #f4fbf6 0%, #e8f5e8 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--meadow-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.countdown-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.countdown-icon {
    color: var(--primary-color);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.2rem 0.8rem;
    min-width: 100px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    transition: color 0.3s ease;
}

.countdown-number.pulse {
    animation: numberPulse 0.5s ease-in-out;
}

@keyframes numberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.countdown-label {
    font-size: 0.85rem;
    color: #6b7a70;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Progress Bar */
.progress-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--meadow-border);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

/* Contact Information */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    color: #33423a;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f7fcf9;
    color: var(--dark-color);
    font-size: 1.3rem;
    text-decoration: none;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 156, 73, 0.3);
}

/* Refresh Button */
.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 156, 73, 0.3);
}

.refresh-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 117, 55, 0.4);
}

/* Status Updates */
.status-updates {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--meadow-border);
    text-align: left;
}

.status-updates h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.update-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--card-border);
}

.update-item:last-child {
    border-bottom: none;
}

.update-time {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: 500;
}

.update-text {
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-bounce-in {
    animation: bounceIn 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    .maintenance-container {
        margin: 0.5rem;
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .maintenance-title {
        font-size: 2.2rem;
    }
    
    .maintenance-subtitle {
        font-size: 1.1rem;
    }
    
    .countdown {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1rem 0.6rem;
    }
    
    .countdown-number {
        font-size: 1.6rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.5rem 0.25rem;
    }
    
    .maintenance-container {
        padding: 1.5rem 1rem;
        margin: 0.25rem;
    }
    
    .maintenance-title {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem 0.4rem;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.loading-dots:nth-child(2) { animation-delay: 0.2s; }
.loading-dots:nth-child(3) { animation-delay: 0.4s; }
