/* ==========================================================================
   FOOTER CSS - POLYBITS THEME
   Premium Dark Footer Design
   ========================================================================== */

/* ==========================================
   SITE FOOTER
   ========================================== */
.site-footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #0a0a0a 0%, #0f0f0f 100%);
    color: #e0e0e0;
    padding: 60px 0 0;
    border-top: 1px solid rgba(255, 75, 75, 0.2);
}

/* Hide footer on mobile (footbar is used instead) */
@media (max-width: 767px) {
    .site-footer {
        padding-bottom: 80px;
        /* Space for mobile footbar */
    }
}

.site-footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ff4b4b;
}

/* Footer Container Grid */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 575px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 0 24px 40px;
    }
}

/* ==========================================
   FOOTER BRAND SECTION
   ========================================== */
.footer-brand .footer-logo {
    display: block;
    width: 180px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.footer-brand .footer-logo:hover {
    transform: scale(1.02);
}

.footer-brand .footer-logo .polybits-logo {
    width: 100%;
    height: auto;
}

@media (max-width: 575px) {
    .footer-brand .footer-logo {
        margin: 0 auto 16px;
    }
}

.footer-tagline {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 575px) {
    .footer-social {
        justify-content: center;
    }
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.footer-social a:hover {
    background: rgba(255, 75, 75, 0.15);
    border-color: rgba(255, 75, 75, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 75, 75, 0.2);
    color: #fff;
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   FOOTER NAVIGATION COLUMNS
   ========================================== */
.footer-nav h4,
.footer-resources h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-nav h4::after,
.footer-resources h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ff4b4b;
    border-radius: 2px;
}

@media (max-width: 575px) {

    .footer-nav h4::after,
    .footer-resources h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

.footer-nav ul,
.footer-resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li,
.footer-resources ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a,
.footer-resources ul li a {
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover,
.footer-resources ul li a:hover {
    color: #ff4b4b;
    padding-left: 5px;
}

/* ==========================================
   FOOTER CONTACT
   ========================================== */
.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #999;
}

.footer-contact p strong {
    color: #ccc;
}

.footer-contact p a {
    color: #aaa;
}

.footer-location {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 575px) {
    .footer-location {
        justify-content: center;
    }
}

.footer-location svg {
    flex-shrink: 0;
}

/* ==========================================
   FOOTER BOTTOM BAR
   ========================================== */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 575px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px 24px;
    }
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.footer-legal {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.footer-legal a {
    color: #666;
}

.footer-legal a:hover {
    color: #ff4b4b;
}

.footer-legal span {
    color: #444;
}

/* ==========================================
   MOBILE FOOTBAR (Bottom Navigation)
   ========================================== */
.mobile-footbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 75, 75, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
    display: none;
}

@media (max-width: 767px) {
    .mobile-footbar {
        display: block;
    }
}

.footbar-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 8px 0;
}

.footbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 56px;
}

.footbar-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.footbar-item.active {
    color: #ff4b4b;
}

.footbar-item.active .footbar-icon {
    transform: scale(1.1);
}

.footbar-item.active .footbar-label {
    color: #ff4b4b;
}

.footbar-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.footbar-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.footbar-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-align: center;
    color: inherit;
}