/* ========================================
   COMPACT FOOTER (Cristalix-style)
======================================== */

.footer-compact {
    position: relative;
    width: 100%;
    margin-top: 5rem;
    /* background: linear-gradient(
        135deg,
        hsl(var(--glass-bg) / 0.95) 0%,
        hsl(var(--glass-bg) / 0.85) 100%
    ); */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

/* Gradient top line */
.footer-gradient-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        hsl(var(--primary) / 0.6) 50%,
        transparent
    );
}

/* Container */
.footer-container {
    max-width: clamp(320px, 90vw, 1420px);
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Прижимает оба блока к низу */
    gap: 2rem;
    min-height: 100px; /* Минимальная высота */
}

@media (min-width: 1920px) {
    .footer-container {
        max-width: calc(100vw - 900px);
    }
}

/* ========================================
   LEFT BLOCK: Copyright
======================================== */

.footer-corp {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
    letter-spacing: 0.5px;
}

/* Copyright text */
.footer-copyright {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
}

.footer-rights {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    margin: 0;
}

/* ========================================
   RIGHT BLOCK: Legal Info & Links
======================================== */

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.75rem; /* Уменьшили gap для компактности */
    text-align: right;
}

/* Organization info */
.footer-org-info {
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--muted-foreground) / 0.7;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Links row */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-end;
    color: var(--muted-foreground);
}

.footer-link {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: hsl(var(--primary));
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: hsl(var(--primary));
}

.footer-link:hover::after {
    width: 100%;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .footer-corp {
        align-items: center;
    }
    
    .footer-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-org-info {
        text-align: center;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
}

/* ========================================
   DARK MODE ADJUSTMENTS
======================================== */

/* @media (prefers-color-scheme: dark) {
    .footer-compact {
        border-top-color: hsl(var(--border) / 0.3);
    }
} */

/* Additional utility for current year */
#current-year {
    font-weight: inherit;
}

/* ========================================
   SOCIAL BUTTONS (fm-nexus exact copy)
======================================== */

.footer-social {
    display: flex;
    gap: 0.75rem; /* 12px - gap-3 */
    justify-content: flex-end;
}

.footer-social .social-link {
    width: 40px;
    height: 40px;
}

.footer-social .social-link svg {
    width: 24px; 
    height: 24px; 
}

.footer-social-btn {
    /* Size: 40x40px (w-10 h-10) */
    width: 40px;
    height: 40px;
    
    /* Flexbox centering */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Border radius: 8px (rounded-lg) */
    border-radius: 0.5rem;
    
    /* Glass effect - ТОЧНО как в fm-nexus */
    background: hsl(var(--glass-bg));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid hsl(var(--glass-border));
    
    /* Icon color */
    color: hsl(var(--muted-foreground));
    
    /* Transition - точно как в fm-nexus */
    transition: all 0.3s ease;
    
    /* Cursor */
    cursor: pointer;
    
    /* Prevent selection */
    user-select: none;
    -webkit-user-select: none;
}

/* SVG inside button */
.footer-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Hover effect - ТОЧНО как fm-nexus */
.footer-social-btn:hover {
    color: hsl(var(--primary));
    border-color: hsl(var(--primary) / 0.3);
    /* НЕТ transform, НЕТ shadow-glow - только цвет! */
}

/* Active state */
.footer-social-btn:active {
    opacity: 0.8;
}

/* Focus state для accessibility */
.footer-social-btn:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
    .footer-social {
        justify-content: center;
    }
}


