/* Unit Zero Footer Styles */

:root {
    --uzf-bg: rgba(5, 5, 8, 0.98);
    --uzf-cyan: #00f3ff;
    --uzf-magenta: #ff00ea;
    --uzf-green: #00ff66;
    --uzf-text: #e0e0e0;
    --uzf-font-head: 'Orbitron', sans-serif;
    --uzf-font-body: 'Inter', sans-serif;
}

.uzf-footer {
    position: relative;
    background: var(--uzf-bg);
    color: var(--uzf-text);
    font-family: var(--uzf-font-body);
    border-top: 2px solid var(--uzf-cyan);
    padding: 40px 20px;
    z-index: 1000;
    overflow: hidden;
    margin-top: auto; /* Pushes to bottom if flex layout */
}

/* Wyrównanie */
.uzf-align-left .uzf-container { text-align: left; align-items: flex-start; }
.uzf-align-center .uzf-container { text-align: center; align-items: center; }
.uzf-align-right .uzf-container { text-align: right; align-items: flex-end; }

.uzf-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Protokół Wersji */
.uzf-protocol {
    font-family: var(--uzf-font-head);
    color: var(--uzf-magenta);
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.uzf-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Social Icons */
.uzf-social-links {
    display: flex;
    gap: 15px;
    justify-content: inherit;
    margin-bottom: 10px;
}

.uzf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--uzf-cyan);
    color: var(--uzf-cyan);
    text-decoration: none;
    font-family: var(--uzf-font-head);
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    background: rgba(0, 243, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.uzf-social-icon:hover {
    background: var(--uzf-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--uzf-cyan);
    text-decoration: none;
    transform: translateY(-2px);
}

.uzf-social-icon.uzf-icon-wa:hover {
    border-color: var(--uzf-green);
    background: var(--uzf-green);
    color: #000;
    box-shadow: 0 0 15px var(--uzf-green);
}

/* Copyright */
.uzf-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: inherit;
    font-size: 0.9rem;
    opacity: 0.8;
}

.uzf-cr-text {
    font-weight: bold;
    letter-spacing: 1px;
}

.uzf-cr-year {
    color: var(--uzf-cyan);
}

/* Uptime Status */
.uzf-system-status {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed rgba(0, 243, 255, 0.3);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    justify-content: inherit;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.uzf-status-label {
    color: var(--uzf-text);
    opacity: 0.6;
}

.uzf-status-value {
    color: var(--uzf-green);
    text-shadow: 0 0 5px var(--uzf-green);
    font-weight: bold;
}

.uzf-status-sep {
    color: var(--uzf-magenta);
}

.uzf-uptime-val {
    color: var(--uzf-cyan);
}

/* Animacje i Efekty */
.uzf-blink {
    animation: uzfBlink 2s infinite;
}

@keyframes uzfBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Glitch Text Effect */
.uz-glitch-text {
    position: relative;
}
.uz-glitch-text::before,
.uz-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}
.uz-glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--uzf-magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: uzfGlitchAnim 3s infinite linear alternate-reverse;
}
.uz-glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--uzf-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: uzfGlitchAnim 2.5s infinite linear alternate-reverse;
}

@keyframes uzfGlitchAnim {
    0% { clip: rect(10px, 9999px, 83px, 0); }
    20% { clip: rect(61px, 9999px, 88px, 0); }
    40% { clip: rect(12px, 9999px, 4px, 0); }
    60% { clip: rect(24px, 9999px, 58px, 0); }
    80% { clip: rect(48px, 9999px, 29px, 0); }
    100% { clip: rect(67px, 9999px, 55px, 0); }
}

/* Scanlines Effect */
.uzf-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.4)
    );
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .uzf-align-left .uzf-container,
    .uzf-align-center .uzf-container,
    .uzf-align-right .uzf-container {
        text-align: center;
        align-items: center;
    }
    
    .uzf-social-links,
    .uzf-copyright,
    .uzf-system-status,
    .uzf-legal-links {
        justify-content: center !important;
    }
}

/* Legal Links */
.uzf-copyright-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: inherit;
}

.uzf-legal-links {
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.uzf-legal-align-left {
    justify-content: flex-start;
}

.uzf-legal-align-center {
    justify-content: center;
}

.uzf-legal-align-right {
    justify-content: flex-end;
}

.uzf-legal-links a {
    color: var(--uzf-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.uzf-legal-links a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.uzf-legal-sep {
    color: var(--uzf-text);
    opacity: 0.5;
}
