/* NetForges Maintenance Pages - Shared Styles */

:root {
    --nf-primary: #2563eb;
    --nf-secondary: #1e40af;
    --nf-accent: #3b82f6;
    --nf-dark: #1e293b;
    --nf-light: #f8fafc;
    --nf-gray: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--nf-dark);
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Logo Cliente */
.client-logo {
    max-width: 200px;
    max-height: 100px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Card principale */
.maintenance-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.maintenance-card h1 {
    font-size: 2.5rem;
    color: var(--nf-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.maintenance-card .subtitle {
    font-size: 1.2rem;
    color: var(--nf-gray);
    margin-bottom: 2rem;
}

/* Animazione centrale */
.animation-container {
    width: 150px;
    height: 150px;
    margin: 2rem auto;
    position: relative;
}

/* Animazione Gears per WorkInProgress */
.gears {
    position: relative;
    width: 100%;
    height: 100%;
}

.gear {
    position: absolute;
    fill: var(--nf-primary);
    animation: rotate 4s linear infinite;
}

.gear.large {
    width: 100px;
    height: 100px;
    top: 0;
    left: 0;
}

.gear.small {
    width: 60px;
    height: 60px;
    bottom: 10px;
    right: 10px;
    animation-direction: reverse;
    animation-duration: 3s;
    fill: var(--nf-accent);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Animazione Rocket per FirstDeploy */
.rocket-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.rocket {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 2s ease-in-out infinite;
}

.rocket svg {
    fill: var(--nf-primary);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--nf-accent);
    border-radius: 50%;
    animation: twinkle 1.5s ease-in-out infinite;
}

.star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.star:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.3s; }
.star:nth-child(3) { top: 70%; left: 15%; animation-delay: 0.6s; }
.star:nth-child(4) { top: 80%; left: 70%; animation-delay: 0.9s; }
.star:nth-child(5) { top: 20%; left: 60%; animation-delay: 1.2s; }

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-15px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Loading dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 1.5rem 0;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    background: var(--nf-primary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* Frase random */
.random-phrase {
    font-size: 1.1rem;
    color: var(--nf-gray);
    font-style: italic;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    margin-top: 1.5rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Progress bar (opzionale) */
.progress-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--nf-primary), var(--nf-accent));
    border-radius: 4px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Footer */
footer {
    background: var(--nf-dark);
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-company {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-tagline {
    color: var(--nf-accent);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-contacts {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-contacts a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contacts a:hover {
    color: var(--nf-accent);
}

/* Responsive */
@media (max-width: 600px) {
    .maintenance-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .maintenance-card h1 {
        font-size: 1.8rem;
    }
    
    .animation-container {
        width: 120px;
        height: 120px;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 0.5rem;
    }
}
