/* 
* UnperDisco - Technologie dla Seniorów
* Styl minimalistyczny z elementami retro
*/

/* ===== Zmienne CSS ===== */
:root {
    /* Kolory */
    --primary-color: #5B68C0;  /* Głowny kolor - odcień niebieskgo */
    --secondary-color: #FFA726; /* Drugi kolor - ciepły pomarańcz */
    --light-color: #F5F5F5; /* Jasny kolor tła */
    --dark-color: #333333; /* Ciemny kolor tekstu */
    --accent-color: #8BC34A; /* Kolor akcentu */
    --error-color: #D32F2F; /* Kolor błędu */
    --success-color: #388E3C; /* Kolor powodzenia */
    --gray-color: #9E9E9E; /* Kolor szary */
    --light-gray: #E0E0E0; /* Jasny szary */
    
    /* Czcionki */
    --base-font-size: 18px; /* Większy bazowy rozmiar czcionki dla seniorów */
    --small-font-size: 16px;
    --heading-font-size: 36px;
    --subheading-font-size: 28px;
    
    /* Inne */
    --border-radius: 8px;
    --spacing-unit: 8px;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

/* ===== Reset i podstawowy styl ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman', serif; /* Retro czcionka */
    font-size: var(--base-font-size);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif; /* Retro nagłówki */
    margin-bottom: calc(var(--spacing-unit) * 2);
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: var(--heading-font-size);
}

h2 {
    font-size: var(--subheading-font-size);
    margin-bottom: calc(var(--spacing-unit) * 3);
    position: relative;
    padding-bottom: calc(var(--spacing-unit) * 1.5);
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 24px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-left: calc(var(--spacing-unit) * 3);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

section {
    padding: calc(var(--spacing-unit) * 8) 0;
}

/* ===== Przyciski ===== */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    font-size: var(--small-font-size);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    text-decoration: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #4957A3; /* Ciemniejszy niebieski */
    color: white;
    text-decoration: none;
}

.secondary-btn {
    background-color: var(--light-gray);
    color: var(--dark-color);
}

.secondary-btn:hover {
    background-color: #D0D0D0;
    color: var(--dark-color);
    text-decoration: none;
}

.tertiary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.tertiary-btn:hover {
    background-color: rgba(91, 104, 192, 0.1);
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== Nagłówek ===== */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: calc(var(--spacing-unit) * 2) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    max-width: 180px;
}

.logo img {
    max-height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: calc(var(--spacing-unit) * 3);
}

nav ul li a {
    color: var(--dark-color);
    font-weight: bold;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: #F0F4FF; /* Jasny niebieski */
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--light-gray); /* Retro element */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(91, 104, 192, 0.03),
        rgba(91, 104, 192, 0.03) 10px,
        rgba(91, 104, 192, 0.06) 10px,
        rgba(91, 104, 192, 0.06) 20px
    ); /* Retro wzór */
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: calc(var(--spacing-unit) * 4);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--primary-color);
}

.hero p {
    font-size: 20px;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* ===== O Nas ===== */
.about-us {
    background-color: white;
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 20px;
}

/* ===== Technologie ===== */
.technologies {
    background-color: #F9F9F9;
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 5);
}

.tech-item {
    background-color: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: center;
    border: 1px solid var(--light-gray); /* Retro obramowanie */
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tech-item img {
    width: 80px;
    height: 80px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

/* ===== Blog ===== */
.blog-section {
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 5);
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    text-align: left;
    border: 1px solid var(--light-gray); /* Retro obramowanie */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #F0F4FF; /* Tło dla ikon SVG */
    padding: calc(var(--spacing-unit) * 2);
}

.blog-content {
    padding: calc(var(--spacing-unit) * 3);
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.blog-content p {
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--gray-color);
}

.read-more {
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left var(--transition-speed) ease;
}

.read-more:hover::after {
    margin-left: 10px;
}

/* ===== Referencje ===== */
.testimonials {
    background-color: #F0F4FF;
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(91, 104, 192, 0.03),
        rgba(91, 104, 192, 0.03) 10px,
        rgba(91, 104, 192, 0.06) 10px,
        rgba(91, 104, 192, 0.06) 20px
    ); /* Retro wzór */
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    padding: calc(var(--spacing-unit) * 3);
    margin: calc(var(--spacing-unit) * 2);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray); /* Retro obramowanie */
}

.testimonial p {
    font-size: 20px;
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial p::before,
.testimonial p::after {
    content: '"';
    font-size: 50px;
    color: var(--light-gray);
    position: absolute;
}

.testimonial p::before {
    left: -15px;
    top: -15px;
}

.testimonial p::after {
    right: -15px;
    bottom: -30px;
}

.testimonial cite {
    font-style: normal;
    font-weight: bold;
    display: block;
    margin-top: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: calc(var(--spacing-unit) * 4);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* ===== Subskrypcja ===== */
.subscription {
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
    background-color: white;
}

.subscription-form {
    max-width: 600px;
    margin: calc(var(--spacing-unit) * 5) auto 0;
    text-align: left;
    padding: calc(var(--spacing-unit) * 3);
    background-color: #F9F9F9;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray); /* Retro obramowanie */
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

label {
    display: block;
    margin-bottom: calc(var(--spacing-unit));
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: var(--base-font-size);
    transition: border-color var(--transition-speed) ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox input {
    margin-top: 5px;
    margin-right: calc(var(--spacing-unit));
}

.checkbox label {
    font-weight: normal;
}

.subscription-form .btn {
    width: 100%;
    margin-top: calc(var(--spacing-unit) * 2);
}

/* ===== Kontakt ===== */
.contact {
    padding: calc(var(--spacing-unit) * 10) 0;
    background-color: #F9F9F9;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    margin-top: calc(var(--spacing-unit) * 5);
}

.contact-details {
    max-width: 600px;
    text-align: left;
}

.contact-details p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.social-links {
    display: flex;
    margin-top: calc(var(--spacing-unit) * 3);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: calc(var(--spacing-unit) * 1.5);
    transition: background-color var(--transition-speed) ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.social-links img {
    width: 20px;
    height: 20px;
   
}

/* ===== Stopka ===== */
footer {
    background-color: #080d2b;
    color: white;
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: calc(var(--spacing-unit) * 2);
    
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    flex: 2;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: calc(var(--spacing-unit) * 4);
    padding-right: calc(var(--spacing-unit) * 2);
}

.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
}

/* ===== System zarządzania cookies ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: calc(var(--spacing-unit) * 3);
    z-index: 9999;
    display: none; /* Początkowo ukryte, pokazane przez JavaScript */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.cookie-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    display: none; /* Początkowo ukryte, pokazane przez JavaScript */
    padding: calc(var(--spacing-unit) * 4);
}

.cookie-options {
    margin: calc(var(--spacing-unit) * 3) 0;
}

.cookie-option {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: calc(var(--spacing-unit) * 2);
    padding-bottom: calc(var(--spacing-unit) * 2);
    border-bottom: 1px solid var(--light-gray);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option input {
    margin-top: 5px;
    margin-right: calc(var(--spacing-unit));
}

.cookie-option label {
    font-weight: bold;
    margin-bottom: 0;
}

.cookie-option p {
    flex: 0 0 100%;
    margin-top: calc(var(--spacing-unit));
    margin-left: calc(var(--spacing-unit) * 3);
    color: var(--gray-color);
}

.settings-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: calc(var(--spacing-unit) * 3);
}

/* ===== Strona artykułu ===== */
.article-header {
    background-color: #F0F4FF;
    padding: calc(var(--spacing-unit) * 10) 0;
    text-align: center;
    position: relative;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(91, 104, 192, 0.03),
        rgba(91, 104, 192, 0.03) 10px,
        rgba(91, 104, 192, 0.06) 10px,
        rgba(91, 104, 192, 0.06) 20px
    ); /* Retro wzór */
}

.article-header .container {
    position: relative;
    z-index: 1;
}

.article-header h1 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-meta {
    color: var(--gray-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-content {
    padding: calc(var(--spacing-unit) * 8) 0;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body p,
.article-body ul,
.article-body ol {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.article-body h2 {
    margin-top: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.article-body h3 {
    margin-top: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-image {
    margin: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray); /* Retro obramowanie */
}

.article-quote {
    padding: calc(var(--spacing-unit) * 3);
    background-color: #F9F9F9;
    border-left: 4px solid var(--primary-color);
    margin: calc(var(--spacing-unit) * 4) 0;
    font-style: italic;
}

.related-articles {
    background-color: #F9F9F9;
    padding: calc(var(--spacing-unit) * 8) 0;
}

/* ===== Strona podziękowania ===== */
.thanks-section {
    padding: calc(var(--spacing-unit) * 15) 0;
    text-align: center;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
}

.thanks-content h1 {
    color: var(--success-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.thanks-content p {
    margin-bottom: calc(var(--spacing-unit) * 3);
    font-size: 20px;
}

.thanks-content .btn {
    margin-top: calc(var(--spacing-unit) * 3);
}

/* ===== Strony prawne ===== */
.legal-section {
    padding: calc(var(--spacing-unit) * 10) 0;
}

.legal-section h1 {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: calc(var(--spacing-unit) * 6);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* ===== Media Queries ===== */
@media (max-width: 1024px) {
    :root {
        --heading-font-size: 32px;
        --subheading-font-size: 24px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .tech-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --base-font-size: 16px;
        --heading-font-size: 28px;
        --subheading-font-size: 22px;
    }

    section {
        padding: calc(var(--spacing-unit) * 6) 0;
    }

    .hero {
        padding: calc(var(--spacing-unit) * 8) 0;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        text-align: center;
        margin-bottom: calc(var(--spacing-unit) * 4);
    }

    .hero-image {
        margin-left: 0;
        max-width: 100%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .tech-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-details {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: calc(var(--spacing-unit) * 4);
    }

    .footer-logo img {
        margin: 0 auto calc(var(--spacing-unit) * 2);
    }

    .footer-column {
        text-align: center;
    }

    /* Nawigacja mobilna */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        padding: calc(var(--spacing-unit) * 6) calc(var(--spacing-unit) * 2);
        z-index: 1000;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: calc(var(--spacing-unit) * 2) 0;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    :root {
        --heading-font-size: 24px;
        --subheading-font-size: 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .tech-item,
    .blog-card {
        padding: calc(var(--spacing-unit) * 2);
    }

    .testimonial {
        padding: calc(var(--spacing-unit) * 2);
        margin: calc(var(--spacing-unit));
    }

    .subscription-form {
        padding: calc(var(--spacing-unit) * 2);
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: calc(var(--spacing-unit));
    }
}
