/* ===== RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f4f6f8;
    color: #222;
}
html, body {
    height: 100%;
}
/* ===== HEADER ===== */

.profile-header {
    position: relative;
    z-index: 10;
}

.header-bg {
    width: 100%;
    height: 389px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}


.header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.header-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
       rgba(0,0,0,0.35),
        rgba(0,0,0,0.55)
    );
}

.profile-info {
    position: relative;
    z-index: 2;
    margin-top: -60px;
    text-align: center;

}

/* ===== LOGO ===== */

.logo-wrapper {
    background: rgba(245,246,248,0.65);
    backdrop-filter: blur(12px);
    width: 320px;
    height: 320px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;

    background-image: url("../post-media/Logo44.png");
    background-repeat: no-repeat;
    background-position: center;

    /* 🔑 TYM STERUJESZ WIELKOŚCIĄ LOGA */
    background-size: 138%;

    /* delikatna biała obwódka */
    background-color: rgba(255,255,255,0.9);

    box-shadow:
        0 4px 14px rgba(0,0,0,0.35),
        0 0 0 1px rgba(255,255,255,0.6);
}

/* ===== MAIN SECTION (BEZ TŁA OBRAZKA) ===== */
.background-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0,0,0,0.08),
        transparent
    );
    margin-bottom: 50px;
}

.background-section {
    background: rgba(230,232,236,0.10);
    padding: 293px 0 140px; /* 🔑 zwiększony top padding */
    margin-top: -259px;     /* 🔑 PODSUWA POD HEADER */
    position: relative;
    z-index: 1;
}


/* ===== ACTIONS ===== */

.profile-actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
}

.tab {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;

    color: rgba(255,255,255,0.8); /* jasny */
    cursor: pointer;

    position: relative;
    padding: 6px 10px;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}



.tab.active {
    color: #ffffff;

    text-shadow:
        0 0 6px rgba(220, 38, 38, 0.55),
        0 0 16px rgba(220, 38, 38, 0.35);
}

.tab:hover {
    color: #020617; /* bardzo ciemny, ale nie czarny */
}

.tab::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;

    height: 2px;
    border-radius: 2px;

    background: rgba(220, 38, 38, 0.9);
    opacity: 0;
    transform: scaleX(0.6);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.tab.active::after,
.tab:hover::after {
    opacity: 1;
    transform: scaleX(1);

    box-shadow:
        0 0 8px rgba(220, 38, 38, 0.7),
        0 0 20px rgba(220, 38, 38, 0.45);
}

/* ===== CONTENT ===== */

.content {
    max-width: 720px;
    margin: auto;
    padding: 0 15px;
}

/* ===== POST CARD ===== */

.post-card {
     background: rgba(245,246,248,0.78); /* chłodna, przygaszona biel */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 16px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25);
    animation: fadeIn 0.9s ease both;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.post-image {
    width: 100%;
    border-radius: 14px;
    margin: 10px 0;
}

.post-text {
    font-size: 16px;
    line-height: 1.5;
    color: rgba(0,0,0,0.6);
}

/* ===== FOOTER ===== */

.site-footer {
     background: rgba(15,23,42,0.8);
    backdrop-filter: blur(6px);
    padding: 24px 16px;
    margin-top: auto;   /* 🔑 SPYCHA NA DÓŁ */
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 4px;
}

.footer-author {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-author a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-weight: 500;
}

.footer-author a:hover {
    color: rgba(255,255,255,0.8);
}

/* ===== ANIMATIONS ===== */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================= */
/* ===== MODAL (NIE ZMIENIONE) ===== */
/* ========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}


.modal-overlay.active {
    display: flex;
}

.modal-box {
    position: relative;
    width: min(90vw, 520px);

    aspect-ratio: 3 / 4;
    max-height: 90vh;           /* 🔑 KLUCZOWE */
    
    background-image: url("../post-media/background.jpeg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;

    border-radius: 22px;
    box-shadow:
        0 25px 70px rgba(0,0,0,0.7),
        0 0 40px rgba(230,210,170,0.18);

    animation: modalEnter 0.45s ease both;
    overflow: visible;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    border-radius: 22px;
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 40px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== CLOSE ===== */

.modal-close {
    position: absolute;
    top: -22px;
    right: -22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #dc2626;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    font-size: 0; /* ukrywamy tekst */
}

.modal-close::before {
    content: "×";
    font-size: 48px;
    font-weight: 700;
    color: #fff;

    transform: translateY(-6px); /* 🔑 TYLKO X */
    display: block;
}


/* ===== PRODUCTS ===== */

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
}

/* wrapper – NIE klikalny */
.product-card {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    transform: translateY(-4px); /* 🔑 bardzo subtelnie */
}

/* TYLKO IKONA JEST KLIKALNA */
.product-card img {
    width: 70%;
    max-width: 132px;
    height: auto;
    border-radius: 12px;
    cursor: pointer;

    background: rgba(0,0,0,0.55);
    padding: 2px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.product-card img:hover {
    transform: scale(1.07);
    background: rgba(0,0,0,0.6);

    box-shadow:
        0 18px 40px rgba(0,0,0,0.7),
        0 0 26px rgba(220, 38, 38, 0.55),   /* 🔴 czerwony glow */
        0 0 60px rgba(220, 38, 38, 0.35);   /* 🔴 miękka poświata */
}
@keyframes redPulse {
    0%, 100% {
        box-shadow:
            0 18px 40px rgba(0,0,0,0.7),
            0 0 26px rgba(220, 38, 38, 0.55),
            0 0 60px rgba(220, 38, 38, 0.35);
    }
    50% {
        box-shadow:
            0 18px 40px rgba(0,0,0,0.7),
            0 0 36px rgba(220, 38, 38, 0.7),
            0 0 80px rgba(220, 38, 38, 0.45);
    }
}

.product-card img:hover {
    animation: redPulse 1.6s ease-in-out infinite;
}

.modal-close {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-close:hover {
    transform: scale(1.08);
    background: #b91c1c; /* 🔴 czerwone tło pod X */

    box-shadow:
        0 14px 30px rgba(0,0,0,0.6),
        0 0 18px rgba(220, 38, 38, 0.7),   /* 🔴 czerwony glow */
        0 0 36px rgba(220, 38, 38, 0.45);
}

.modal-overlay.active {
    animation: overlayFade 0.4s ease both;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ===== RESPONSIVE ===== */

@media (max-width: 600px) {
    .header-bg { height: 200px; }
    .profile-info { margin-top: -50px; }
    .logo-wrapper { width: 96px; height: 96px; }
}

/* ===== MAIN DOWNLOAD BUTTON ===== */

/* ===== MAIN DOWNLOAD BUTTON ===== */

.btn-download-main {
    background: #dc2626;          /* 🔴 czerwone tło */
    color: #ffffff;               /* ⚪ białe litery */

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;

    padding: 10px 26px;
    border-radius: 999px;

    border: 2px solid #000000;    /* ⚫ czarna obwódka */
    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.btn-download-main:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);

    box-shadow:
        0 12px 26px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-download-main:active {
    transform: translateY(0);
    filter: brightness(0.97);
}


.profile-actions {
    align-items: center;
}

/* ===== POST HEADER ===== */

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-avatar{
    width: 38px;
    height: 38px;
    border-radius: 50%;

    background-color: rgba(255,255,255,0.85); /* delikatna obwódka */
    background-image: url("../post-media/Logo44.png");
    background-repeat: no-repeat;
    background-position: center;

    /* TYM sterujesz wielkością logo w środku */
    background-size: 95%;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.6);
}

/* ===== MODAL CLOSE ANIMATION ===== */

.modal-overlay.closing .modal-box {
    animation: modalExit 0.45s ease forwards;
}

.modal-overlay.closing {
    animation: overlayFadeOut 0.45s ease forwards;
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.92);
    }
}

@keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@media (hover: hover) {
    .post-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(0,0,0,0.18);
    }
}
/* ===== COOKIE BANNER ===== */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;

    background: rgba(15,23,42,0.95);
    color: rgba(255,255,255,0.85);
    padding: 14px 18px;
    border-radius: 14px;

    display: flex;
    gap: 16px;
    align-items: center;

    box-shadow:
        0 20px 40px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.08);

    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 9999;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-banner p {
    font-size: 13px;
    line-height: 1.4;
}

.cookie-banner a {
    color: rgba(230,210,170,0.9);
    text-decoration: none;
}

.cookie-banner button {
    background: linear-gradient(
        135deg,
        rgba(230,210,170,0.95),
        rgba(200,170,120,0.95)
    );
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    cursor: pointer;
    font-weight: 600;
}


@media (max-width: 600px) {
    .product-card {
        margin-top: 20px; /* mniej niż na desktop */
        padding: 10px;
    }

    .product-card img {
        max-width: 110px; /* 🔑 mniejsze ikony */
    }
}

/* ===== CHECKOUT ===== */

.checkout-card {
    max-width: 520px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group label {
    font-size: 13px;
    color: #475569;
    margin-bottom: 4px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #c8aa7a;
    box-shadow: 0 0 0 2px rgba(200,170,120,0.25);
}

.form-row {
    display: flex;
    gap: 12px;
}

.checkout-summary {
    margin-top: 10px;
    font-size: 16px;
    text-align: center;
}

.checkbox {
    font-size: 13px;
    color: #475569;
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkbox a {
    color: #8b6b3f;
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

.checkout-btn {
    margin-top: 16px;
    width: 100%;
}

/* mobile */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .modal-close::before {
        transform: translateY(-3px); /* było -6px na desktop */
    }
}

.page-wrapper {
    max-width: 1300px;
    width: 100%;

    min-height: 100vh;     /* 🔑 wypełnia ekran */
    height: auto;

    margin: 0 auto;
    background: transparent;

    display: flex;
    flex-direction: column;
}

.product-card.free img {
    animation: redPulseOutline 1.8s ease-in-out infinite;
}

@keyframes redPulseOutline {
    0%, 100% {
        box-shadow:
            0 18px 40px rgba(0,0,0,0.7),
            0 0 26px rgba(220, 38, 38, 0.55),
            0 0 60px rgba(220, 38, 38, 0.35),
            0 0 0 2px rgba(220, 38, 38, 0.95); /* 🔴 kontur */
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 18px 40px rgba(0,0,0,0.7),
            0 0 26px rgba(220, 38, 38, 0.55),
            0 0 60px rgba(220, 38, 38, 0.35),
            0 0 0 7px rgba(220, 38, 38, 0);  /* zanika */
        transform: scale(1.06);
    }
}

.product-card.paid img {
    animation: none;
    transform: none;

    border: 2px solid rgba(220, 38, 38, 0.95);

    box-shadow: none;   /* 🔑 USUWA WSZELKI GLOW */
}

.product-card.paid img:hover {
     transform: scale(1.07);
    box-shadow: none;   /* 🔑 ŻADNEGO GLOW NA HOVER */
}

body.page-index {
    background-image: url("../post-media/landscape.jpeg");

    /* 🔑 POWTARZANIE W PIONIE */
    background-repeat: repeat-y;

    /* 🔑 WYŚRODKOWANIE */
    background-position: center top;

    /* 🔑 STAŁA SZEROKOŚĆ, NATURALNA WYSOKOŚĆ */
    background-size: min(1300px, 100%) auto;

    /* 🔑 MUSI BYĆ scroll */
    background-attachment: scroll;
}

body.page-index::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.15)
    );
    pointer-events: none;
    z-index: -1;
}


/* ===== CHECKOUT BACKGROUND ===== */

body.page-checkout {
    background-image: url("../post-media/landscape_payment.jpg");

    /* 🔑 POWTARZANIE PIONOWE */
    background-repeat: repeat-y;

    /* 🔑 WYŚRODKOWANIE */
    background-position: center top;

    /* 🔑 STAŁA SZEROKOŚĆ, NATURALNA WYSOKOŚĆ */
    background-size: min(1300px, 100%) auto;

    /* 🔑 MUSI BYĆ scroll */
    background-attachment: scroll;
}



body.page-checkout::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: -1;
}

.btn-audio {
    background: rgba(15,23,42,0.75);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 600;

    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;

    box-shadow:
        0 6px 18px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.1);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-audio:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 24px rgba(0,0,0,0.45);
}

.btn-audio.is-on {
    background: linear-gradient(
        135deg,
        rgba(180, 50, 50, 0.95),
        rgba(140, 30, 30, 0.95)
    );
    color: #fff;
}

/* ===== POWIĘKSZONY YOUTUBE (TYLKO TEN FRAGMENT) ===== */

.youtube-wrapper {
    position: relative;
    width: 100%;

    /* ⬇️ KLUCZ: większy film */
    padding-top: 65%;        /* było 56.25% → wyższy */
    margin: 20px 0px;      /* wychodzi poza padding posta */

    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.youtube-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
