/*
* assets/css/components/footer.css
* DropX Prime System - Cyberpunk Lábléc, Modális Ablakok és Globális Lightbox
*
* Tartalom:
* 1. Fő lábléc konténer (.site-footer) és téma beállítások
* 2. Jogi hivatkozások (.footer-legal, .legal-link, .footer-separator)
* 3. Lábléc információs rács (.footer-grid)
* 4. Reszponzív lábléc elrendezés (Tablet és Mobil nézet)
* 5. Globális visszajelző sáv (.global-feedback)
* 6. Képnéző Lightbox (#image-modal-overlay)
* 7. Globális Emoji Picker Modal (.emoji-picker-modal)
* 8. Webstúdió és Sablon-előnézet Modal (#design-modal-overlay)
* 
* JAVÍTÁS (V7.2 - KÖZPONTI MODAL ÉS LIGHTBOX STÍLUSOK INTEGRÁCIÓJA):
* - Átmozgatva az összes modális stílus a PHP fájlokból a 0. szabályzatnak megfelelően.
* - Szigorúan mentes az szabályoktól.
* 
* VERZIÓ: 7.2
*/

/* ==========================================================================
   1. FŐ LÁBLÉC KONTÉNER ÉS TÉMA BEÁLLÍTÁSOK
   ========================================================================== */
.site-footer { 
    background: rgba(10, 8, 7, 0.95); 
    border-top: 1px solid var(--color-border-gold); 
    box-shadow: 
        0 -15px 40px rgba(0, 0, 0, 0.95), 
        inset 0 1px 0 rgba(255, 255, 255, 0.05); 
    padding: 20px 40px; 
    margin-top: auto; 
    border-radius: 0; 
    position: relative; 
    overflow: hidden; 
}

body.light-mode .site-footer { 
    background: rgba(238, 234, 227, 0.98); 
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05); 
    border-top: 1px solid rgba(179, 107, 0, 0.3); 
}

/* ==========================================================================
   2. JOGI HIVATKOZÁSOK ÉS ELVÁLASZTÓK
   ========================================================================== */
.footer-legal { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    font-size: 0.8rem; 
}

.legal-link { 
    color: var(--text-muted); 
    text-decoration: none; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    transition: all 0.3s ease; 
    padding: 4px 8px; 
    border-radius: 3px; 
}

.legal-link:hover { 
    color: var(--color-gold); 
    background: rgba(229, 158, 0, 0.05); 
    text-shadow: 0 0 8px var(--color-gold-glow); 
}

.footer-separator { 
    width: 4px; 
    height: 4px; 
    background: var(--color-border-gold); 
    border-radius: 50%; 
    box-shadow: 0 0 6px var(--color-gold); 
}

/* ==========================================================================
   3. LÁBLÉC INFORMÁCIÓS RÁCS (BAL, KÖZÉP, JOBB)
   ========================================================================== */
.footer-grid { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid var(--color-border-subtle); 
    padding-top: 15px; 
    font-size: 0.75rem; 
}

.footer-left { 
    flex: 1; 
    display: flex; 
    justify-content: flex-start; 
}

.footer-badge { 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid var(--color-border-subtle); 
    padding: 4px 10px; 
    color: var(--text-muted); 
    letter-spacing: 1px; 
    font-weight: 700; 
    font-size: 0.7rem; 
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5); 
    border-radius: 3px; 
}

.footer-center { 
    flex: 2; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.service-tag { 
    color: var(--color-gold); 
    font-weight: 800; 
    font-size: 0.7rem; 
    letter-spacing: 1.5px; 
    text-shadow: 0 0 10px var(--color-gold-glow); 
}

.service-dot { 
    width: 3px; 
    height: 3px; 
    background: var(--text-muted); 
    border-radius: 50%; 
    opacity: 0.5; 
}

.footer-right { 
    flex: 1; 
    display: flex; 
    justify-content: flex-end; 
}

.designer-badge { 
    background: rgba(229, 158, 0, 0.03); 
    border: 1px solid var(--color-border-gold); 
    padding: 4px 12px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    color: var(--text-muted); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); 
}

.designer-name { 
    color: var(--color-gold); 
    font-weight: 800; 
    text-shadow: 0 0 8px var(--color-gold-glow); 
}

/* ==========================================================================
   4. RESZPONZÍV LÁBLÉC TÖRÉSPONTOK
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid { 
        flex-direction: column; 
        gap: 20px; 
        text-align: center; 
    }
    
    .footer-left,
    .footer-center,
    .footer-right {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 20px 15px calc(var(--app-nav-height-mobile) + 20px) 15px;
    }
    
    .footer-legal {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .legal-link {
        font-size: 0.72rem;
        padding: 2px 4px;
    }
}

/* ==========================================================================
   5. GLOBÁLIS VISSZAJELZŐ SÁV
   ========================================================================== */
.global-feedback {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 99999;
    display: none;
    width: auto;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.global-feedback.info { background-color: #3498db; }
.global-feedback.success { background-color: #27ae60; }
.global-feedback.error { background-color: #e74c3c; }
.global-feedback.warning { background-color: #f39c12; }

/* ==========================================================================
   6. KÉPNÉZŐ LIGHTBOX
   ========================================================================== */
#image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483640;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#image-modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    position: relative;
    z-index: 2147483642;
    pointer-events: none;
}

#lightbox-nav-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2147483641;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    font-size: 2rem;
    z-index: 2147483643;
    pointer-events: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.lightbox-nav-btn:hover:not(:disabled) {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.lightbox-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#lightbox-prev-btn {
    left: 20px;
}

#lightbox-next-btn {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    z-index: 2147483644;
    pointer-events: none;
    display: none;
}

/* ==========================================================================
   7. GLOBÁLIS EMOJI PICKER MODAL
   ========================================================================== */
.emoji-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483645;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.emoji-picker-modal.active {
    opacity: 1;
    visibility: visible;
}

.emoji-picker-modal-content {
    background: rgba(20, 18, 16, 0.95);
    border: 1px solid var(--color-border-gold);
    box-shadow: 0 0 25px var(--color-gold-glow);
    padding: 15px;
    border-radius: 8px;
}

/* ==========================================================================
   8. WEBSTÚDIÓ ÉS SABLON-ELŐNÉZET MODAL (#design-modal-overlay)
   ========================================================================== */
#design-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483646;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
    padding: 20px;
}

#design-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-glass-container {
    background: rgba(18, 15, 12, 0.98);
    border: 1px solid var(--color-border-gold);
    box-shadow: 0 0 35px var(--color-gold-glow);
    width: 95vw;
    height: 90vh;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-header-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(10, 8, 7, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.iframe-controls {
    display: flex;
    gap: 6px;
}

.iframe-controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-subtle);
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.iframe-controls button:hover,
.iframe-controls button.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

.modal-close-btn-alt {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close-btn-alt:hover {
    color: #e74c3c;
}

.modal-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

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

.iframe-container {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: max-width 0.3s ease;
    margin: 0 auto;
}

.iframe-container.view-desktop {
    max-width: 100%;
}

.iframe-container.view-tablet {
    max-width: 768px;
}

.iframe-container.view-mobile {
    max-width: 375px;
}

#design-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
footer,
.site-footer {
    background: linear-gradient(180deg, rgba(7,9,11,.94), rgba(4,5,6,.98));
    border-top-color: var(--dx-line-soft);
}

body.light-mode footer,
body.light-mode .site-footer {
    background: linear-gradient(180deg, #e9edef, #dde3e7);
    color: #65717b;
    border-top-color: rgba(57,68,78,.10);
}
