/* ============================================
   Minimal Modern Footer Component Styles
   ============================================ */

#footer-container,
.footer-host {
    width: 100vw;
    max-width: 100vw;
    margin-top: 2rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#dynamic-footer {
    background: #171F39;
    color: #0F172A;
    padding: 3.5rem 0 2.5rem;
    margin-top: 0;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    min-height: 180px;
    max-height: none; /* Remove height restriction */
    
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Footer Row Layout - Vertical Structure */
.footer-brand-row {
    margin-bottom: 2rem;
    text-align: center;
}

.footer-nav-row {
    margin-bottom: 1.5rem;
}

.footer-social-row {
    margin-bottom: 1.5rem;
}

/* Top Section: Logo & Title on same line */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Remove old grid layout */
.footer-grid {
    display: none; /* Hide old grid */
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff; /* White background box */
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin: 0;
    letter-spacing: 0.025em;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap; /* Keep on single line */
}

.footer-description {
    font-size: 1rem;
    font-weight: 400;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    white-space: nowrap; /* Keep on single line */
}

/* Center Section: Navigation Links */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.footer-link:hover {
    color: #3b82f6;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: width 0.2s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Right Section: Social Media */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.social-icon:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Bottom Strip */
.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    border-top: none; /* Remove horizontal line */
}

.footer-copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    #dynamic-footer {
        padding: 2rem 0 1rem;
        max-height: none;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    /* Hide old grid completely */
    .footer-grid {
        display: none !important;
    }
    
    /* Mobile row layout */
    .footer-brand-row {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin: 0 0 0.5rem 0;
        line-height: 1.2;
        white-space: normal; /* Allow wrapping on mobile */
        text-align: center;
    }
    
    .footer-description {
        font-size: 0.8rem;
        margin: 0 0 1rem 0;
        line-height: 1.3;
        white-space: normal; /* Allow wrapping on mobile */
        text-align: center;
        max-width: 100%;
    }
    
    .footer-nav-row {
        margin-bottom: 1.5rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-link {
        font-size: 0.9rem;
        color: #ffffff;
    }
    
    .footer-social-row {
        margin-bottom: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-bottom {
        padding-top: 1rem;
        border-top: none;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer-brand-row {
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-brand {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo {
        width: 55px;
        height: 45px;
        border-radius: 0;
        background: white  ;
        border-radius: 5%;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    
    .footer-logo img {
        width: 48px;
        height: 45px;
    }
    
    .footer-title {
        font-size: 1rem;
        line-height: 1.3;
        white-space: normal;
        text-align: center;
    }
    
    .footer-description {
        font-size: 0.75rem;
        line-height: 1.4;
        white-space: normal;
        text-align: center;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .footer-nav-row {
        margin-bottom: 1rem;
    }
    
    .footer-nav {
        gap: 0.75rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .footer-social-row {
        margin-bottom: 1rem;
    }
    
    .footer-social {
        gap: 1rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
    }
}
