/* ==========================================================================
   UPGRADE.HTML - MOBILE FIXES
   Poprawki responsywności dla iPhone 12 Mini i podobnych urządzeń
   ========================================================================== */

/* ==========================================================================
   0. HERO SECTION - Odstęp od menu górnego (MEGA PRAKTYCZNE WARSZTATY AI)
   ========================================================================== */
@media (max-width: 480px) {
    /* Hero section - główna sekcja zaraz po header */
    .hero {
        padding-top: 5rem !important;
        margin-top: 2rem !important;
    }

    /* Hero eyebrow - napis "MEGA PRAKTYCZNE WARSZTATY AI" */
    .hero-eyebrow {
        margin-top: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Hero container */
    .hero-container {
        padding-top: 3rem !important;
    }

    /* Hero content */
    .hero-content {
        padding-top: 2rem !important;
    }
}

/* Większe ekrany mobile (np. iPhone 12 Pro Max) */
@media (max-width: 768px) and (min-width: 481px) {
    .hero {
        padding-top: 4rem !important;
    }

    .hero-container {
        padding-top: 2rem !important;
    }
}

/* ==========================================================================
   1. BANNER CTA - Odstęp od sekcji z różowym tłem
   ========================================================================== */
@media (max-width: 480px) {
    /* Sekcja "MEGA PRAKTYCZNE WARSZTATY AI" z różowym tłem */
    .content-section {
        margin-top: 2rem;
        padding-top: 3rem;
    }

    /* Jeśli banner ma klasę sticky/fixed */
    .cta-banner + .content-section,
    .sticky-cta + .content-section,
    .fixed-banner + .content-section {
        margin-top: 3rem;
        padding-top: 3.5rem;
    }
}

/* ==========================================================================
   2. LISTA PUNKTOWANA - Wyrównanie w sekcji "Jak to działa w praktyce?"
   ========================================================================== */
@media (max-width: 480px) {
    /* Lista z zadaniami przygotowawczymi */
    .feature-list,
    .feature-list--checked,
    .content-list,
    ul.feature-list {
        text-align: left !important;
        padding-left: 1.5rem;
        list-style-position: outside;
    }

    .feature-list li,
    .feature-list--checked li {
        text-align: left !important;
        padding-left: 0.5rem;
    }

    /* Dla list ze znakami • */
    .feature-list li::marker {
        text-align: left;
    }
}

/* ==========================================================================
   3. BLOKI Z IKONAMI - Layout pionowy (column) na mobile
   ========================================================================== */
@media (max-width: 480px) {
    /* Value cards i info cards */
    .value-card,
    .value-card--with-image,
    .info-card,
    .card-with-icon {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .value-card-text {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Ikona nad tekstem */
    .value-icon {
        margin-bottom: 1.5rem;
        margin-right: 0;
    }

    /* Content po ikonie */
    .value-content {
        width: 100%;
        padding-left: 0;
    }

    /* Obrazki w value cards */
    .value-card-image {
        width: 100%;
        margin-top: 1.5rem;
    }

    /* Akademie i szkoły */
    .value-card-agenda {
        width: 100%;
        margin-top: 1.5rem;
    }
}

/* ==========================================================================
   4. SEKCJA CENNIKA - Wyśrodkowanie elementów
   ========================================================================== */
@media (max-width: 480px) {
    /* Elementy cennika */
    .pricing-item,
    .price-item,
    .value-item,
    .katalog-item {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    /* Labelki w ceniku (nazwy produktów) */
    .value-label {
        text-align: center !important;
        width: 100% !important;
    }

    /* Ceny produktów */
    .price,
    .price-value,
    .value-price,
    .katalog-price {
        text-align: center !important;
        width: 100% !important;
        display: block !important;
    }

    /* Łączna wartość katalogowa */
    .total-value,
    .suma-katalogowa,
    .katalog-total {
        text-align: center !important;
        width: 100% !important;
        display: block;
        margin: 1rem auto;
    }

    /* Container cennika */
    .pricing-grid,
    .katalog-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* ==========================================================================
   5. COUNTDOWN TIMER - Layout 4x1 zamiast 2x2
   ========================================================================== */
@media (max-width: 480px) {
    /* Timer container */
    .countdown-timer,
    .timer-container,
    #countdown {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: 1fr !important;
        gap: 0.3rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
    }

    /* Timer boxes */
    .countdown-box,
    .timer-box,
    .countdown-item {
        width: 100% !important;
        padding: 0.4rem 0.15rem !important;
        font-size: 0.65rem !important;
        min-width: 0 !important;
    }

    /* Cyfry w timerze */
    .countdown-number,
    .timer-number {
        font-size: 1rem !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
    }

    /* Labelki (DNI, GODZIN, etc.) */
    .countdown-label,
    .timer-label {
        font-size: 0.55rem !important;
        margin-top: 0.2rem !important;
        word-break: keep-all !important;
        white-space: nowrap !important;
        line-height: 1 !important;
    }
}

/* ==========================================================================
   6. TEKST POD ZEGAREM - Poprawka łamania daty
   ========================================================================== */
@media (max-width: 480px) {
    /* Tekst z datą końca przedsprzedaży */
    .countdown-date,
    .deadline-text,
    .przedsprzedaz-koniec {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        text-align: center;
        padding: 0 1rem;
        line-height: 1.6;
    }

    /* Zapobiegaj rozdzielaniu daty */
    .countdown-date strong,
    .deadline-text strong {
        white-space: nowrap;
        display: inline-block;
    }
}

/* ==========================================================================
   7. BLOKI CERTYFIKACJI - Zwiększony padding
   ========================================================================== */
@media (max-width: 480px) {
    /* Certified AI Career Developer */
    .certification-card,
    .cert-block,
    .certificate-info {
        padding: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Tekst w blokach */
    .certification-card p,
    .cert-block p {
        padding-right: 0.5rem;
        margin-right: 0;
    }

    /* Tytuły w blokach */
    .certification-card h3,
    .cert-block h3 {
        padding-right: 0.5rem;
    }
}

/* ==========================================================================
   8. HERO SOCIAL PROOF - Dowód społeczny pod CTA
   ========================================================================== */
@media (max-width: 480px) {
    .hero-social-proof {
        padding: 0 1rem !important;
    }

    .hero-social-proof > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .hero-social-proof img {
        width: 32px !important;
        height: 32px !important;
        margin-left: -10px !important;
    }

    .hero-social-proof img:first-child {
        margin-left: 0 !important;
    }

    .hero-social-proof span {
        font-size: 0.85rem !important;
        margin-left: 0.5rem !important;
        flex-basis: 100% !important;
        margin-top: 0.5rem !important;
        text-align: center !important;
    }

    /* Hero preview box */
    .hero-preview {
        padding: 1.25rem !important;
        margin: 1.5rem 1rem 0 1rem !important;
    }

    .hero-preview p {
        font-size: 0.9rem !important;
    }

    .hero-preview span {
        font-size: 0.85rem !important;
    }

    .hero-preview svg {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   9. P.S. SECTION - Responsywność
   ========================================================================== */
@media (max-width: 480px) {
    .ps-section {
        padding: 1.5rem 1.25rem !important;
        margin: 0 1rem !important;
    }

    .ps-section p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .ps-section strong:first-child {
        font-size: 1.15rem !important;
    }
}

/* ==========================================================================
   DODATKOWE POPRAWKI MOBILE
   ========================================================================== */
@media (max-width: 480px) {
    /* Ogólny padding dla sekcji */
    .section {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Headingi nie wychodzą poza ekran */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Obrazki responsywne */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Vimeo embeddy */
    .vimeo-wrapper {
        margin: 1rem 0;
    }

    .vimeo-label {
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   SPECIFIC SELECTORS - Doprecyzowane selectory dla upgrade.html
   ========================================================================== */
@media (max-width: 480px) {
    /* Banner overlap fix - bardziej specific */
    section[style*="background"] .section-title {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    /* FAQ section */
    .faq-item {
        text-align: left !important;
    }

    /* CTA buttons */
    .cta-button,
    .btn-primary,
    .btn-cta {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1rem;
        font-size: 0.9rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hero main CTA - specjalnie dla długiego tekstu */
    .hero-buttons .btn-primary,
    .hero .btn-primary {
        font-size: 0.85rem !important;
        padding: 1rem 0.75rem !important;
        white-space: normal !important;
        line-height: 1.4 !important;
        min-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Agenda toggle buttons */
    .agenda-toggle {
        width: 100%;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   QUICK WIN SECTION - Mobile responsiveness
   ========================================================================== */
@media (max-width: 480px) {
    /* Quick win main container */
    .quick-win-box {
        padding: 2rem 1.5rem !important;
        margin: 0 1rem !important;
    }

    /* Badge */
    .quick-win-box span[style*="inline-block"] {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
    }

    /* Heading */
    .quick-win-box h2 {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }

    .quick-win-box > div > p {
        font-size: 1rem !important;
    }

    /* Content boxes */
    .quick-win-box h3 {
        font-size: 1.2rem !important;
    }

    .quick-win-box h4 {
        font-size: 1.05rem !important;
    }

    /* Icon circles */
    .quick-win-box div[style*="width: 50px"] {
        width: 40px !important;
        height: 40px !important;
    }

    .quick-win-box div[style*="width: 50px"] span {
        font-size: 1rem !important;
    }

    /* Text paragraphs */
    .quick-win-box p {
        font-size: 0.95rem !important;
    }

    /* List items */
    .quick-win-box li span {
        font-size: 0.95rem !important;
    }

    /* SVG icons */
    .quick-win-box svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Guarantee reminder at bottom */
    .quick-win-box > div > div:last-child p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    .quick-win-box > div > div:last-child span {
        font-size: 1.05rem !important;
    }
}

/* ==========================================================================
   WYOBRAŹ SOBIE SECTION - Mobile responsiveness
   ========================================================================== */
@media (max-width: 480px) {
    /* Imagine box main container */
    .imagine-box {
        padding: 2rem 1.5rem !important;
        margin: 0 1rem !important;
    }

    /* Badge */
    .imagine-box span[style*="inline-block"] {
        font-size: 0.75rem !important;
        padding: 0.4rem 1rem !important;
    }

    /* Main heading */
    .imagine-box h2 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }

    /* Scenario headings */
    .imagine-box h3 {
        font-size: 1.15rem !important;
        line-height: 1.4 !important;
    }

    /* Icon boxes */
    .imagine-box div[style*="width: 50px"] {
        width: 40px !important;
        height: 40px !important;
    }

    /* SVG icons */
    .imagine-box svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Paragraphs */
    .imagine-box p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    /* Strong text in paragraphs */
    .imagine-box strong {
        font-size: inherit !important;
    }

    /* Notification box */
    .imagine-box div[style*="background: white"] p:first-child {
        font-size: 0.9rem !important;
    }

    .imagine-box div[style*="background: white"] p:last-child {
        font-size: 0.85rem !important;
    }

    /* Weekend priorities strong text */
    .imagine-box div[style*="display: flex"] strong {
        font-size: 0.95rem !important;
    }

    .imagine-box div[style*="display: flex"] p {
        font-size: 0.85rem !important;
    }

    /* Key insight box */
    .imagine-box div[style*="text-align: center"] p {
        font-size: 1.05rem !important;
    }

    .imagine-box div[style*="text-align: center"] strong {
        font-size: 1.1rem !important;
    }

    /* Final message */
    .imagine-box > div > div:last-child p:first-child {
        font-size: 1.1rem !important;
    }

    .imagine-box > div > div:last-child p:last-child {
        font-size: 1.25rem !important;
        line-height: 1.5 !important;
    }

    /* Reduce padding on scenario boxes */
    .imagine-box div[style*="padding: 2rem"] {
        padding: 1.5rem !important;
    }

    .imagine-box div[style*="padding: 1.5rem"] {
        padding: 1.25rem !important;
    }

    /* Decorative gradient - hide or reduce on mobile */
    .imagine-box > div[style*="position: absolute"] {
        width: 200px !important;
        height: 200px !important;
        opacity: 0.5;
    }
}
