@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* === White & Blue Modern Design System === */

/* --- 1. Zmienne i Globalne Style --- */
:root {
    /* Paleta Kolorów */
    --primary-blue: #007AFF;      /* Żywy niebieski dla akcentów */
    --light-blue-bg: #F0F7FF;   /* Bardzo jasny błękit dla tła sekcji */
    --white: #FFFFFF;
    --dark-text: #212529;         /* Główny kolor tekstu */
    --light-text: #6c757d;        /* Drugorzędny kolor tekstu */
    --border-color: #dee2e6;     /* Kolor ramek */
    
    /* Typografia */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Cienie */
    --shadow-soft: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 24px rgba(0, 122, 255, 0.1);
}

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 1140px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- 2. Nagłówek --- */
header {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-blue);
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

header nav {
    display: flex;
    align-items: center;
}

header nav a {
    color: var(--dark-text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: var(--primary-blue);
}

/* Przełącznik języka */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--border-color);
    margin-right: 1.5rem;
}

.lang-switcher .lang-link {
    padding: 6px 14px;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    border-radius: 16px;
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
}

.lang-switcher .lang-link.active {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 122, 255, 0.2);
}

.lang-switcher .lang-link:not(.active):hover {
    color: var(--dark-text);
}

.lang-switcher span {
    color: var(--border-color);
    margin: 0 2px;
    font-size: 1rem;
}


/* --- 3. Strona Główna --- */
.hero-section {
    text-align: center;
    padding: 5rem 1rem;
    background-color: var(--light-blue-bg);
    border-radius: 12px;
    margin-top: 2rem;
}

.hero-section h2 {
    font-size: clamp(2.0rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--dark-text);
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 650px;
    margin: 0 auto;
}

.converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.converter-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converter-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--light-blue-bg), var(--white));
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

.icon-wrapper .fa-solid, .icon-wrapper .fas {
    font-size: 2.2rem;
    color: var(--primary-blue);
}

.converter-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--dark-text);
}

.converter-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* --- 4. Podstrony Narzędzi i treści prawne --- */
.converter-container, .legal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    box-shadow: var(--shadow-soft);
}

.converter-header {
    text-align: center;
    margin-bottom: 3rem;
}

.converter-header .icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.converter-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 0.5rem;
}

.converter-header p {
    font-size: 1.1rem;
    color: var(--light-text);
}

.about-section {
    padding: 4rem 1rem;
    margin-top: 3rem;
    background-color: var(--light-blue-bg);
    border-radius: 12px;
    text-align: center;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.about-section p {
    color: var(--light-text);
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- Sekcja Misji Serwisu --- */
.site-mission-section {
    padding: 3rem 1rem;
    margin-top: 3rem;
    background-color: var(--light-blue-bg);
    border-radius: 12px;
    text-align: center;
}

.site-mission-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.site-mission-section p {
    color: var(--light-text);
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- 5. Stopka --- */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0 0 0.5rem;
    color: var(--light-text);
    font-size: 0.9rem;
}

footer a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}