/* Teljes Szélességű Konténer Widget CSS */

/* Alapértelmezett konténer stílusok */
.fullwidth-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Teljes szélesség engedélyezve */
.fullwidth-container.fullwidth-enabled {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Tartalom wrapper */
.fullwidth-content {
    width: 100%;
    height: auto;
    position: relative;
}

/* Desktop specifikus stílusok */
@media (min-width: 1025px) {
    .fullwidth-container.fullwidth-desktop {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .fullwidth-container:not(.fullwidth-desktop) {
        width: auto;
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Tablet specifikus stílusok */
@media (min-width: 768px) and (max-width: 1024px) {
    .fullwidth-container.fullwidth-tablet {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .fullwidth-container:not(.fullwidth-tablet) {
        width: auto;
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Mobil specifikus stílusok */
@media (max-width: 767px) {
    .fullwidth-container.fullwidth-mobile {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
    
    .fullwidth-container:not(.fullwidth-mobile) {
        width: auto;
        position: static;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Animációs effektek */
.fullwidth-container.fullwidth-animated {
    transition: all 0.3s ease-in-out;
}

.fullwidth-container.fullwidth-animated:hover {
    transform: scale(1.02);
}

/* Elementor editor specifikus stílusok */
.elementor-editor-active .fullwidth-container.fullwidth-enabled {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
}

/* Flexbox támogatás a tartalomhoz */
.fullwidth-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Egyéb widget tartalom automatikus szélességi beállítása */
.fullwidth-content > * {
    width: 100%;
    max-width: 100%;
}

/* Template tartalom speciális stílusok */
.fullwidth-content .elementor {
    width: 100% !important;
    max-width: 100% !important;
}

.fullwidth-content .elementor-section {
    width: 100% !important;
    max-width: 100% !important;
}

.fullwidth-content .elementor-container {
    max-width: 100% !important;
}

/* Template widget-ek átméretezése */
.fullwidth-content .elementor-widget {
    width: 100% !important;
}

/* Nested Elementor sections támogatása */
.fullwidth-content .elementor-section-wrap {
    width: 100%;
    overflow: visible;
}

/* Overflow kezelés variánsai */
.fullwidth-container[style*="overflow: hidden"] {
    overflow: hidden !important;
}

.fullwidth-container[style*="overflow: scroll"] {
    overflow: scroll !important;
}

.fullwidth-container[style*="overflow: auto"] {
    overflow: auto !important;
}

.fullwidth-container[style*="overflow: visible"] {
    overflow: visible !important;
}

/* RTL támogatás */
[dir="rtl"] .fullwidth-container.fullwidth-enabled {
    left: auto;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Print média stílusok */
@media print {
    .fullwidth-container.fullwidth-enabled {
        width: 100% !important;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Accessibility javítások */
.fullwidth-container:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Performance optimalizáció */
.fullwidth-container {
    will-change: transform, width;
    contain: layout;
}

/* Responsive képek támogatása */
.fullwidth-content img {
    max-width: 100%;
    height: auto;
}

/* Responsive videók támogatása */
.fullwidth-content video,
.fullwidth-content iframe,
.fullwidth-content embed,
.fullwidth-content object {
    max-width: 100%;
    height: auto;
}

/* Grid layout támogatás */
.fullwidth-content.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .fullwidth-content.grid-layout {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Flexbox layout támogatás */
.fullwidth-content.flex-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.fullwidth-content.flex-layout > * {
    flex: 1 1 300px;
}

/* Loading állapot */
.fullwidth-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

.fullwidth-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrolling támogatás */
.fullwidth-container {
    scroll-behavior: smooth;
}

/* High contrast mód támogatás */
@media (prefers-contrast: high) {
    .fullwidth-container {
        border: 1px solid currentColor;
    }
}

/* Reduced motion támogatás */
@media (prefers-reduced-motion: reduce) {
    .fullwidth-container.fullwidth-animated {
        transition: none;
    }
    
    .fullwidth-container.fullwidth-animated:hover {
        transform: none;
    }
} 