/* =================================================================
   🎨 GLOBAL BRANDING & LOGO STYLES
   Leadome - Business Intelligence Hub
   
   This file contains reusable logo and branding components
   that can be used across all routes and pages globally.
   ================================================================= */

/* ========== LOGO CONTAINERS ========== */

/* Header Logo - Used in navigation bars */
.leadome-logo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.leadome-logo-header:hover {
    transform: translateY(-2px);
}

.leadome-logo-header img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.leadome-logo-header:hover img {
    filter: brightness(1.1);
}

/* Footer Logo - Used in footer sections */
.leadome-logo-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.leadome-logo-footer img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.leadome-logo-footer:hover img {
    filter: brightness(1.1);
}

/* Sidebar Logo - Used in sidebar navigation */
.leadome-logo-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.leadome-logo-sidebar img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.leadome-logo-sidebar:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Small Logo - Used in compact spaces */
.leadome-logo-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.leadome-logo-small img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

/* Medium Logo - Used in medium-sized containers */
.leadome-logo-medium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leadome-logo-medium img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Large Logo - Used in hero sections or landing pages */
.leadome-logo-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leadome-logo-large img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ========== RESPONSIVE LOGO STYLES ========== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .leadome-logo-header img {
        height: 48px;
    }
    
    .leadome-logo-footer img {
        height: 45px;
    }
    
    .leadome-logo-sidebar img {
        height: 35px;
    }
    
    .leadome-logo-large img {
        height: 50px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .leadome-logo-header img {
        height: 40px;
    }
    
    .leadome-logo-footer img {
        height: 40px;
    }
    
    .leadome-logo-sidebar img {
        height: 30px;
    }
    
    .leadome-logo-medium img {
        height: 30px;
    }
    
    .leadome-logo-large img {
        height: 45px;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    .leadome-logo-header img {
        height: 35px;
    }
    
    .leadome-logo-footer img {
        height: 35px;
    }
    
    .leadome-logo-sidebar img {
        height: 28px;
    }
    
    .leadome-logo-small img {
        height: 24px;
    }
    
    .leadome-logo-medium img {
        height: 28px;
    }
    
    .leadome-logo-large img {
        height: 40px;
    }
}

/* ========== UTILITY CLASSES ========== */

/* Center aligned logo */
.leadome-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Left aligned logo */
.leadome-logo-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* Right aligned logo */
.leadome-logo-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Animated logo - adds pulse effect */
.leadome-logo-animated img {
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Glow effect for logo */
.leadome-logo-glow img {
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.leadome-logo-glow:hover img {
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.8));
}

/* Grayscale effect (for inactive states) */
.leadome-logo-grayscale img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.leadome-logo-grayscale:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== FAVICON HELPER ========== */
/* 
   Add this link tag in your HTML <head> section:
   <link rel="icon" type="image/png" href="{{ url_for('static', filename='images/Leadome_Fav-Icon.png') }}">
*/

/* ========== USAGE EXAMPLES ========== */
/*
   HEADER USAGE:
   <a href="/" class="leadome-logo-header">
       <img src="{{ url_for('static', filename='images/Leadome_Primary.png') }}" alt="Leadome">
   </a>
   
   FOOTER USAGE:
   <div class="leadome-logo-footer">
       <img src="{{ url_for('static', filename='images/Leadome_Primary.png') }}" alt="Leadome">
   </div>
   
   SIDEBAR USAGE:
   <a href="/" class="leadome-logo-sidebar">
       <img src="{{ url_for('static', filename='images/Leadome_Primary.png') }}" alt="Leadome">
   </a>
   
   WITH UTILITY CLASSES:
   <div class="leadome-logo-header leadome-logo-center leadome-logo-glow">
       <img src="{{ url_for('static', filename='images/Leadome_Primary.png') }}" alt="Leadome">
   </div>
*/

/* =================================================================
   🦶 GLOBAL FOOTER STYLES
   Professional footer component for all pages
   FULLY RESPONSIVE - Optimized for all screen sizes
   ================================================================= */

.business-footer {
    background: linear-gradient(135deg, #0a0e14 0%, #131922 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    color: #f8fafc;
    margin-top: clamp(2rem, 5vw, 4rem);
    box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: min(1400px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
    box-sizing: border-box;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    width: 100%;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.company-info {
    max-width: 450px;
}

.company-description {
    color: #cbd5e1;
    line-height: 1.65;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    color: #cbd5e1;
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 28px;
}

.contact-item i {
    width: 18px;
    min-width: 18px;
    text-align: center;
    color: #33ddff;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.footer-title {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    padding-bottom: 0.625rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: clamp(25px, 5vw, 35px);
    height: 2px;
    background: linear-gradient(135deg, #00d4ff, #00f2a0);
    border-radius: 9999px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(0.375rem, 1vw, 0.625rem);
}

.footer-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: clamp(0.25rem, 0.5vw, 0.375rem) 0;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 32px;
}

.footer-links li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(135deg, #00d4ff, #00f2a0);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-bottom {
    padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.5rem);
    row-gap: clamp(1rem, 2vw, 1.5rem);
}

.copyright p {
    color: #cbd5e1;
    font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
    margin: 0;
    line-height: 1.5;
}

.footer-links-bottom {
    display: flex;
    gap: clamp(1rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    align-items: center;
}

.footer-links-bottom a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.375rem 0;
    white-space: nowrap;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 8vw, 44px);
    height: clamp(40px, 8vw, 44px);
    min-width: 40px;
    min-height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 9999px;
    color: #33ddff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    flex-shrink: 0;
}

/* ========== HOVER EFFECTS (Desktop Only) ========== */
@media (hover: hover) and (pointer: fine) {
    .contact-item:hover {
        color: #33ddff;
        transform: translateX(4px);
    }
    
    .footer-links li a:hover {
        color: #33ddff;
        transform: translateX(8px);
    }
    
    .footer-links li a:hover::before {
        width: 20px;
    }
    
    .footer-links-bottom a:hover {
        color: #33ddff;
    }
    
    .social-links a:hover {
        background: linear-gradient(135deg, #00d4ff, #00f2a0);
        border-color: transparent;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }
}

/* ========== TOUCH DEVICES - Enhanced Touch Targets ========== */
@media (hover: none) and (pointer: coarse) {
    .footer-links li a {
        min-height: 44px;
        padding: 0.625rem 0;
    }
    
    .footer-links-bottom a {
        min-height: 44px;
        padding: 0.625rem 0.5rem;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
    
    .contact-item {
        min-height: 36px;
    }
}

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

/* Ultra-Wide Screens (1920px+) */
@media (min-width: 1920px) {
    .footer-container {
        max-width: 1600px;
    }
    
    .footer-main {
        gap: 4rem;
    }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .footer-main {
        grid-template-columns: 2.5fr 1fr 1fr 1fr;
    }
}

/* Desktop (1200px - 1439px) */
@media (max-width: 1439px) {
    .company-info {
        max-width: 400px;
    }
}

/* Small Desktop / Large Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
    .footer-main {
        grid-template-columns: 2fr 1fr 1fr;
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .company-info {
        grid-column: 1 / -1;
        max-width: none;
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
        padding-bottom: clamp(1rem, 2vw, 1.5rem);
        border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    }
}

/* Tablet Landscape (900px - 1023px) */
@media (max-width: 1023px) {
    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Tablet Portrait (768px - 899px) */
@media (max-width: 899px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .company-info {
        grid-column: 1 / -1;
    }
}

/* Small Tablet / Large Mobile (640px - 767px) */
@media (max-width: 767px) {
    .footer-container {
        padding: 0 clamp(1rem, 3vw, 1.5rem);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
        padding: clamp(1.5rem, 3vw, 2rem) 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: clamp(1.25rem, 3vw, 1.75rem);
    }
    
    .footer-links-bottom {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        align-items: flex-start;
    }
}

/* Mobile (480px - 639px) */
@media (max-width: 639px) {
    .footer-main {
        gap: clamp(1.25rem, 3vw, 1.75rem);
    }
    
    .footer-section {
        padding-bottom: clamp(0.75rem, 2vw, 1rem);
    }
    
    .footer-section:not(:last-child) {
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }
}

/* Small Mobile (360px - 479px) */
@media (max-width: 479px) {
    .footer-container {
        padding: 0 clamp(0.875rem, 3vw, 1.25rem);
    }
    
    .footer-main {
        padding: clamp(1.25rem, 3vw, 1.75rem) 0;
        gap: clamp(1.25rem, 3vw, 1.5rem);
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-title {
        text-align: left;
    }
}

/* Ultra-Small Mobile (320px - 359px) */
@media (max-width: 359px) {
    .footer-container {
        padding: 0 0.75rem;
    }
    
    .footer-main {
        padding: 1.25rem 0;
        gap: 1.25rem;
    }
    
    .company-description {
        font-size: 0.8125rem;
    }
    
    .footer-links li a,
    .contact-item {
        font-size: 0.8125rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}

/* Landscape Mobile (max-height: 500px and landscape) */
@media (max-height: 500px) and (orientation: landscape) {
    .footer-main {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .company-info {
        grid-column: auto;
        max-width: none;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }
    
    .company-description {
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .business-footer {
        border-top: 2px solid rgba(0, 212, 255, 0.6);
    }
    
    .footer-main {
        border-bottom: 2px solid rgba(0, 212, 255, 0.4);
    }
    
    .footer-links li a,
    .footer-links-bottom a,
    .contact-item {
        color: #f8fafc;
    }
    
    .footer-title::after {
        height: 3px;
    }
}

