/* ==========================================================================
   RESPONSIVE.CSS - Style responsywne dla swiatmini.pl
   ========================================================================== */

/* ==========================================================================
   LANGUAGE SWITCHER - Style globalne (desktop i mobile)
   ========================================================================== */

.language-switcher {
    position: relative;
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.current-language:hover {
    background: rgba(255,255,255,0.2);
}

.current-language i {
    transition: transform 0.3s ease;
}

.language-switcher.active .current-language i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-option:hover {
    background: rgba(255,255,255,0.1);
}

.language-option.active {
    background: rgba(255,0,0,0.2);
    color: #ff0000;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
}

/* ==========================================================================
   UKRYJ ELEMENTY MOBILNE NA DESKTOP
   ========================================================================== */

@media (min-width: 1025px) {
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }
}

/* ==========================================================================
   TABLET LANDSCAPE (1024px i mniej)
   ========================================================================== */
@media screen and (max-width: 1024px) {

    /* Header */
    .header-container {
        padding: 0 15px;
    }

    .main-navigation {
        margin: 0 20px;
    }

    .menu-list {
        gap: 20px;
    }

    .menu-link {
        font-size: 13px;
    }

    /* ========== MENU MOBILNE - HAMBURGER ========== */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
        padding: 5px;
    }

    .hamburger-line {
        display: block;
        width: 25px;
        height: 3px;
        background: #ffffff;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ========== MENU MOBILNE - PANEL BOCZNY ========== */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #1a1a1a;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 20px 20px;
    }

    .mobile-menu.active {
        left: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    }

    .mobile-menu-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu-item {
        margin-bottom: 10px;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .mobile-menu.active .mobile-menu-item {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-menu-link {
        display: block;
        padding: 15px 0;
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: color 0.3s ease;
    }

    .mobile-menu-link:hover {
        color: #ff0000;
    }

    /* ========== JĘZYKI W MENU MOBILNYM ========== */
    .mobile-languages {
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-languages h4 {
        color: #ffffff;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .mobile-language-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .mobile-language-option {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 8px 15px;
        background: rgba(255,255,255,0.1);
        color: #ffffff;
        text-decoration: none;
        border-radius: 5px;
        font-size: 14px;
        transition: all 0.3s ease;
    }

    .mobile-language-option:hover,
    .mobile-language-option.active {
        background: #ff0000;
    }

    /* ========== CTA BUTTON W MENU MOBILNYM ========== */
    .mobile-cta-button {
        display: inline-block;
        margin-top: 30px;
        padding: 15px 30px;
        background: #ff0000;
        color: #ffffff;
        text-decoration: none;
        border-radius: 30px;
        font-weight: 600;
        text-align: center;
        width: 100%;
        transition: all 0.3s ease;
    }

    .mobile-cta-button:hover {
        background: #cc0000;
        transform: translateY(-2px);
    }

    /* ========== OVERLAY MENU ========== */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* ========== HERO SECTIONS - TABLET ========== */
    .hero-title {
        font-size: 42px;
    }

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

    .hero-buttons {
        gap: 15px;
    }

    /* ========== FAQ ACCORDION - TABLET ========== */
    .accordion-header {
        padding: 18px 20px;
    }

    .accordion-question {
        font-size: 17px;
    }

    .accordion-item.active .accordion-content {
        padding: 0 20px 18px 20px;
    }

    /* ========== CARDS & GRID - TABLET ========== */
    .services-grid,
    .features-grid,
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .card,
    .service-card,
    .feature-card {
        padding: 25px;
    }

    .card-icon,
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Nagłówki */
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    /* Sekcje */
    .section {
        padding: 60px 0;
    }
}

/* ==========================================================================
   TABLET PORTRAIT (768px i mniej)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* Header - ukrywamy desktop menu */
    .main-navigation,
    .header-actions {
        display: none;
    }
    
    /* Pokazujemy hamburger */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Logo mniejsze */
    .logo {
        height: 40px;
    }
    
    /* Footer */
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* ========== HERO SECTIONS - MOBILE ========== */
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* ========== FAQ ACCORDION - MOBILE ========== */
    .faq-container {
        padding: 0 5px;
    }

    .accordion-header {
        padding: 15px 18px;
    }

    .accordion-question {
        font-size: 16px;
        line-height: 1.4;
    }

    .accordion-icon {
        font-size: 18px;
        margin-left: 10px;
    }

    .accordion-item.active .accordion-content {
        padding: 0 18px 15px 18px;
    }

    .accordion-answer {
        font-size: 14px;
        line-height: 1.7;
    }

    /* ========== CARDS & GRID - MOBILE ========== */
    .services-grid,
    .features-grid,
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .card,
    .service-card,
    .feature-card {
        padding: 20px;
    }

    .card-icon,
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .card-title,
    .service-title {
        font-size: 18px;
    }

    /* ========== FORM VALIDATION - MOBILE ========== */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }

    .alert i {
        font-size: 16px;
    }

    .error-message,
    .success-message {
        font-size: 12px;
        padding: 5px 8px;
    }

    /* Sticky CTA na mobile */
    .sticky-cta-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .sticky-cta-button span {
        display: none; /* Ukrywamy tekst, zostawiamy tylko ikonę */
    }
    
    .sticky-cta-button i {
        margin: 0;
        font-size: 16px;
    }
    
    /* Nagłówki */
    h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    /* Sekcje */
    .section {
        padding: 40px 0;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
}

/* ==========================================================================
   MOBILE (480px i mniej)
   ========================================================================== */
@media screen and (max-width: 480px) {
    
    /* Header */
    .header-container {
        min-height: 60px;
        padding: 0 10px;
    }
    
    .logo {
        height: 35px;
    }
    
    /* Mobile menu */
    .mobile-menu {
        top: 60px;
    }
    
    .mobile-navigation {
        padding: 15px;
    }
    
    .mobile-menu-link {
        font-size: 14px;
        padding: 12px 0;
    }
    
    /* Footer */
    .footer-column h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .footer-links a,
    .contact-item,
    .company-info {
        font-size: 13px;
    }
    
    .footer-logo img {
        height: 35px;
    }

    .social-link {
        width: 35px;
        height: 35px;
    }

    /* ========== HERO SECTIONS - MAŁE MOBILE ========== */
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    /* ========== FAQ ACCORDION - MAŁE MOBILE ========== */
    .accordion-header {
        padding: 12px 15px;
    }

    .accordion-question {
        font-size: 15px;
    }

    .accordion-icon {
        font-size: 16px;
    }

    .accordion-item.active .accordion-content {
        padding: 0 15px 12px 15px;
    }

    .accordion-answer {
        font-size: 13px;
    }

    /* ========== CARDS - MAŁE MOBILE ========== */
    .card,
    .service-card,
    .feature-card {
        padding: 18px;
    }

    .card-icon,
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .card-title,
    .service-title {
        font-size: 17px;
    }

    .card-description,
    .service-description {
        font-size: 13px;
    }

    /* Nagłówki */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    /* Przyciski */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    /* Formularze */
    .form-control {
        font-size: 16px; /* Zapobiega zoom na iOS */
        padding: 10px 12px;
    }
}

/* ==========================================================================
   BARDZO MAŁE EKRANY (320px i mniej)
   ========================================================================== */
@media screen and (max-width: 320px) {
    
    /* Header */
    .logo {
        height: 30px;
    }
    
    /* Hamburger mniejszy */
    .hamburger-line {
        width: 20px;
    }
    
    /* Nagłówki */
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }

    /* ========== HERO - BARDZO MAŁE EKRANY ========== */
    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    /* ========== FAQ - BARDZO MAŁE EKRANY ========== */
    .accordion-question {
        font-size: 14px;
    }

    .accordion-answer {
        font-size: 12px;
    }

    /* ========== CARDS - BARDZO MAŁE EKRANY ========== */
    .card,
    .service-card,
    .feature-card {
        padding: 15px;
    }

    .card-icon,
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 15px;
    }

    .card-title,
    .service-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    /* Footer */
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* ==========================================================================
   DUŻE EKRANY (1400px i więcej)
   ========================================================================== */
@media screen and (min-width: 1400px) {
    
    /* Większa maksymalna szerokość */
    .header-container,
    .footer-container,
    .container {
        max-width: 1600px;
    }
    
    /* Większe odstępy w menu */
    .menu-list {
        gap: 40px;
    }
    
    /* Większa czcionka menu */
    .menu-link {
        font-size: 15px;
    }
}

/* ==========================================================================
   ORIENTACJA POZIOMA NA MOBILE (landscape)
   ========================================================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    
    /* Mniejszy header */
    .header-container {
        min-height: 50px;
    }
    
    .logo {
        height: 30px;
    }
    
    /* Menu mobilne */
    .mobile-menu {
        top: 50px;
    }
    
    .mobile-navigation {
        padding: 10px 20px;
    }
    
    .mobile-menu-link {
        padding: 8px 0;
        font-size: 13px;
    }
    
    .mobile-languages {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .mobile-cta-button {
        margin-top: 15px;
        padding: 10px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    
    /* Ukryj elementy niepotrzebne do druku */
    .main-header,
    .main-footer,
    .sticky-cta-button,
    .social-link,
    .language-switcher {
        display: none !important;
    }
    
    /* Reset kolorów */
    body {
        background: white;
        color: black;
    }
    
    /* Linki bez podkreśleń */
    a {
        color: black;
        text-decoration: none;
    }
    
    /* Pokaż adresy URL */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}

/* ==========================================================================
   DOSTĘPNOŚĆ - FOCUS STYLES
   ========================================================================== */

/* Dla użytkowników korzystających z klawiatury */
*:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Ukryj outline dla użytkowników myszy */
*:focus:not(:focus-visible) {
    outline: none;
}

/* Pokaż outline dla nawigacji klawiaturą */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ==========================================================================
   ANIMACJE - PREFERS REDUCED MOTION
   ========================================================================== */

/* Dla użytkowników preferujących mniej animacji */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   DARK MODE SUPPORT (automatyczny)
   ========================================================================== */

/* Strona już jest w dark mode, ale dodajemy wsparcie dla jasnego trybu systemowego */
@media (prefers-color-scheme: light) {
    /* Opcjonalnie możesz dodać alternatywne kolory dla trybu jasnego */
    /* Na razie zostawiamy dark mode jako domyślny */
}