/* ==========================================
   🚧 CONSTRUCTION.CSS - CZYSTE STYLE STRONY W BUDOWIE
   ========================================== */

/* Variables są ładowane przez functions.php jako zależność */

/* ==========================================
   📦 GŁÓWNA ZAWARTOŚĆ STRONY W BUDOWIE
   ========================================== */

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    background: var(--bg-page);
}

.truck-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 40px auto;
    border-radius: var(--radius-button); /* 8px - Shape & Sizing System v5.0 */
    display: block;
    box-shadow: var(--shadow-sm);
}

.message h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.message p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.6;
    margin: 0 auto;
}

/* ==========================================
   🎨 SEKCJA HERO
   ========================================== */

.construction-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v5.0 */
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
}

.construction-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.construction-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    color: white;
}

.construction-icon {
    font-size: 4rem;
    margin-bottom: 30px;
    display: block;
}

/* ==========================================
   📊 PROGRESS BAR
   ========================================== */

.progress-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v5.0 */
    margin: 40px auto;
    max-width: 800px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.progress-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--border-light);
    border-radius: 10px; /* Custom - pomiędzy button (8px) a card (12px) */
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 10px; /* Custom - pomiędzy button (8px) a card (12px) */
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==========================================
   📋 LISTA FUNKCJI
   ========================================== */

.features-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v5.0 */
    margin: 40px auto;
    max-width: 1000px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.features-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: var(--card-padding-md); /* 20px - Shape & Sizing System v4.0 */
    background: var(--bg-secondary);
    border-radius: var(--radius-button); /* 8px - Shape & Sizing System v5.0 */
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 24px;
    color: var(--accent-color);
    min-width: 30px;
}

.feature-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.feature-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================================
   📞 KONTAKT
   ========================================== */

.contact-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v5.0 */
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.contact-section p {
    margin-bottom: 30px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-contact {
    background: var(--primary-color);
    color: white;
    padding: var(--btn-padding-md) /* 12px 24px - Shape & Sizing System v5.0 */;
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-button); /* 8px - Shape & Sizing System v5.0 */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-contact:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: var(--btn-padding-md) /* 12px 24px - Shape & Sizing System v5.0 */;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-button); /* 8px - Shape & Sizing System v5.0 */
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* ==========================================
   📅 TIMELINE
   ========================================== */

.timeline-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-card); /* 12px - Shape & Sizing System v5.0 */
    margin: 40px auto;
    max-width: 800px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.timeline-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full); /* 50% - Shape & Sizing System v4.0 */
    background: var(--primary-color);
    border: 3px solid var(--bg-card);
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-item.completed::before {
    background: var(--success-color);
}

.timeline-item.current::before {
    background: var(--warning-color);
    animation: pulse 2s infinite;
}

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

.timeline-content h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.timeline-content p {
    margin: 0 0 5px 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   📱 RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .main-content {
        padding: 60px 15px;
        min-height: 50vh;
    }
    
    .truck-image {
        max-width: 300px;
        margin-bottom: 30px;
    }
    
    .message h2 {
        font-size: 2rem;
    }
    
    .message p {
        font-size: 1.1rem;
    }
    
    .construction-hero {
        padding: 40px 20px;
        margin: 20px;
    }
    
    .construction-hero h1 {
        font-size: 2.5rem;
    }
    
    .construction-hero p {
        font-size: 1.1rem;
    }
    
    .progress-section,
    .features-section,
    .contact-section,
    .timeline-section {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-contact,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 40px 10px;
    }
    
    .truck-image {
        max-width: 250px;
    }
    
    .message h2 {
        font-size: 1.8rem;
    }
    
    .message p {
        font-size: 1rem;
    }
    
    .construction-hero {
        padding: 30px 15px;
        margin: 15px;
    }
    
    .construction-hero h1 {
        font-size: 2rem;
    }
    
    .construction-hero p {
        font-size: 1rem;
    }
    
    .construction-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .progress-section,
    .features-section,
    .contact-section,
    .timeline-section {
        margin: 15px;
        padding: 20px 15px; /* Custom - Responsive mobile construction */
    }
    
    .feature-item {
        padding: var(--input-padding-x); /* 15px - Shape & Sizing System v4.0 */
    }
    
    .timeline-content h4 {
        font-size: 16px;
    }
}

/* ==========================================
   🎨 ANIMACJE
   ========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   🌙 DARK MODE SPECIFIC
   ========================================== */

html[data-theme="dark"] .truck-image {
    filter: brightness(0.9);
}

html[data-theme="dark"] .progress-fill {
    background: linear-gradient(90deg, var(--success-color), var(--accent-color));
}

html[data-theme="dark"] .timeline::before {
    background: var(--border-strong);
}