/* Professional Business Calculator - Muted Corporate Colors 2025 */

:root {
    /* Professional Corporate Palette */
    --burgundy-accent: #8B1538;
    --burgundy-muted: #9f4257;
    --navy-primary: #2c3e50;
    --navy-deep: #1a252f;
    --slate-primary: #475569;
    --slate-light: #64748b;
    
    /* Neutral Background Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --white: #ffffff;
    
    /* Professional Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

body {
    background: var(--bg-primary);
}

/* Hero Section - Professional Corporate Style with Background Image */
.hero-calculator {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 37, 47, 0.9) 100%),
                url('../img/hero/calculator-hero.jpg') center/cover;
    padding: 3.5rem 2rem;
    border-radius: 1rem;
    margin: 2rem 0 3rem 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-calculator-content {
    position: relative;
    z-index: 1;
}

.hero-calculator h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hero-calculator p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Investment Type Selector - Clean Professional */
.investment-selector-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
}

.selector-label {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.investment-toggle-wrapper {
    display: flex;
    gap: 1rem;
    background: var(--gray-100);
    border-radius: 0.75rem;
    padding: 0.375rem;
    max-width: 500px;
    margin: 0 auto;
}

.investment-option-link {
    flex: 1;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--gray-600);
    border: 1px solid transparent;
}

.investment-option-link:hover {
    color: var(--navy-primary);
    background: var(--white);
}

.investment-option-link.active {
    background: var(--burgundy-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.2);
}

/* Search Box - Minimal Professional */
.search-container-modern {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
}

.search-container-modern .selector-label {
    margin-bottom: 1.25rem;
}

.search-wrapper {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
}

.search-icon-wrapper {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    pointer-events: none;
}

.search-input-modern {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
    background: var(--white);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.search-input-modern:focus {
    outline: none;
    border-color: var(--slate-primary);
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.1);
}

.search-input-modern::placeholder {
    color: var(--gray-400);
}

/* Province Cards - Professional Clean Style */
.province-bento-card {
    background: var(--white);
    border-radius: 1rem;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.province-bento-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-300);
}

.province-header-modern {
    background: linear-gradient(135deg, var(--slate-primary) 0%, var(--navy-primary) 100%);
    padding: 1.75rem 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.province-icon {
    font-size: 1.75rem;
}

.province-name-modern {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Data Grid - Card Based */
.data-grid-modern {
    padding: 2rem;
    display: grid;
    gap: 1.25rem;
}

/* Gmina Card - Professional Box */
.gmina-bento-item {
    background: var(--gray-50);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    transition: all 0.25s ease;
}

.gmina-bento-item:hover {
    border-color: var(--burgundy-muted);
    background: var(--white);
    box-shadow: 0 4px 16px rgba(139, 21, 56, 0.06);
}

.gmina-header-section {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.gmina-title-block h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.25rem;
}

.gmina-title-block p {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Data Display Grid */
.data-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.data-display-section {
    background: var(--white);
    border-radius: 0.5rem;
    padding: 1.125rem;
    border: 1px solid var(--gray-200);
}

.section-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-500);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header::before {
    content: '';
    width: 3px;
    height: 10px;
    background: var(--burgundy-accent);
    border-radius: 2px;
}

/* Tags - Professional Pills */
.tags-container {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.value-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid;
    transition: all 0.2s ease;
}

.value-tag:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tag-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

.tag-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy-primary);
}

/* Professional Muted Color Schemes for Tags */
.tag-duze {
    background: #fef5f5;
    border-color: #e5c3c3;
    color: var(--gray-700);
}

.tag-duze .tag-value {
    color: #b91c1c;
}

.tag-srednie {
    background: #fffbf0;
    border-color: #f0e4c3;
    color: var(--gray-700);
}

.tag-srednie .tag-value {
    color: #b45309;
}

.tag-male {
    background: #f0fdf5;
    border-color: #c3e6cd;
    color: var(--gray-700);
}

.tag-male .tag-value {
    color: #15803d;
}

.tag-mikro {
    background: #f0f7ff;
    border-color: #c3daf0;
    color: var(--gray-700);
}

.tag-mikro .tag-value {
    color: #1e40af;
}

.tag-bpo {
    background: #f7f5ff;
    border-color: #d7d0f0;
    color: var(--gray-700);
}

.tag-bpo .tag-value {
    color: #7c3aed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-calculator {
        padding: 2.5rem 1.5rem;
        border-radius: 0.75rem;
    }

    .investment-toggle-wrapper {
        flex-direction: column;
        gap: 0.625rem;
    }

    .investment-option-link {
        padding: 0.875rem;
    }

    .province-header-modern {
        padding: 1.25rem 1.5rem;
    }

    .province-name-modern {
        font-size: 1.25rem;
    }

    .data-grid-modern {
        padding: 1.25rem;
        gap: 1rem;
    }

    .gmina-bento-item {
        padding: 1.125rem;
    }

    .gmina-header-section {
        flex-direction: column;
        gap: 0.5rem;
    }

    .data-display-grid {
        grid-template-columns: 1fr;
    }
}

/* Subtle Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.province-bento-card {
    animation: fadeIn 0.4s ease-out;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .search-container-modern,
    .investment-selector-card {
        display: none;
    }

    .province-bento-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }
}

