﻿/* ============================================
   FRONTPAGE STYLES - Global CSS
   ============================================ */

/* CSS Variables (będą ustawiane dynamicznie z C#) */
:root {
    --hero-height: 600px;
    --hero-image: url('/Images/front/default.jpg');
    --hero-mask-color: #2563eb;
    --hero-mask-opacity: 0.85;
    --accent-color: #2563eb;
    --panels-bg-color: #f9fafb;
}

/* ===== HERO SECTION (Header) ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: var(--hero-height);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        var(--hero-mask-color) 0%, 
        color-mix(in srgb, var(--hero-mask-color) 80%, transparent) 50%,
        transparent 100%);
    opacity: var(--hero-mask-opacity);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: white;
}

/* ===== QUICK ACCESS CARDS (Top Box) ===== */
.quick-access-section {
    position: relative;
    z-index: 20;
    margin-top: -80px;
    padding: 0 1rem 3rem;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.access-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.access-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.access-card-icon {
    /*font-size: 3.5rem;
*/    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.access-card:hover .access-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.access-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.access-card-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        height: min(500px, 80vh);
    }

    .quick-access-section {
        margin-top: -50px;
        padding: 0 0.5rem 2rem;
    }

    .quick-access-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .access-card {
        padding: 1.5rem;
    }

    .hero-content {
        padding: 1rem;
    }
}
