/* Mobile-Friendly Footer Styles */

/* Mobile Toggle Icons */
.mobile-toggle-icon {
    display: none;
    font-size: 12px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-toggle-icon {
        display: inline-block;
        margin-left: auto;
    }
    
    .footer-section.active .mobile-toggle-icon {
        transform: rotate(180deg);
    }
    
    /* Make section titles clickable on mobile */
    .footer-section-title {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        -webkit-tap-highlight-color: transparent;
    }
    
    .footer-section-title:hover {
        color: var(--gold);
    }
    
    /* Accordion behavior for footer sections */
    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .footer-section.active .footer-links {
        padding-bottom: 20px;
    }
}

/* Improved Mobile Footer Layout */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px !important;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 0 !important;
        grid-template-columns: none !important;
    }
    
    .footer-brand {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-brand h3 {
        font-size: 24px !important;
        margin-bottom: 15px;
    }
    
    /* Footer Logo Mobile Styles */
    .footer-logo {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .footer-logo-image {
        max-height: 45px;
        max-width: 150px;
    }
    
    .footer-logo-mark {
        width: 40px;
        height: 40px;
    }
    
    .footer-logo-mark::after {
        font-size: 16px;
    }
    
    .footer-logo-main {
        font-size: 20px;
    }
    
    .footer-logo-sub {
        font-size: 10px;
        letter-spacing: 1.5px;
    }
    
    .footer-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }
    
    .footer-section {
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0;
    }
    
    .footer-section:last-of-type {
        border-bottom: none;
    }
    
    .footer-section h4 {
        font-size: 16px !important;
        margin-bottom: 0 !important;
        padding: 15px 0 !important;
        font-weight: 500;
    }
    
    .footer-section h4::after {
        display: none !important;
    }
    
    .footer-links li {
        padding: 8px 0;
        font-size: 14px;
    }
    
    .footer-link {
        color: rgba(255,255,255,0.8) !important;
        text-decoration: none;
        transition: color 0.2s ease;
        display: inline-block;
        padding: 4px 0;
    }
    
    .footer-link:hover,
    .footer-link:active {
        color: var(--gold) !important;
    }
    
    /* Social links on mobile */
    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .social-icon:hover,
    .social-icon:active {
        background: var(--gold);
        border-color: var(--gold);
        transform: translateY(-2px);
    }
    
    /* Footer bottom on mobile */
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .footer {
        padding: 30px 15px 15px !important;
    }
    
    .footer-brand h3 {
        font-size: 20px !important;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .footer-section h4 {
        font-size: 15px !important;
        padding: 12px 0 !important;
    }
    
    .footer-links li {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .footer-section-title {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .footer-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Ensure proper contrast on mobile */
@media (max-width: 768px) {
    .footer {
        background: linear-gradient(180deg, #1a1b29 0%, #0d0e1a 100%) !important;
    }
    
    .footer-section-title span {
        color: #ffffff;
    }
    
    .footer-link {
        color: rgba(255,255,255,0.9) !important;
    }
    
    .footer-link:active {
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
        margin: 0 -8px;
        padding: 4px 8px;
    }
}

/* Fix for WordPress admin bar on mobile */
@media (max-width: 600px) {
    .admin-bar .footer {
        margin-bottom: 46px;
    }
}

/* Landscape mobile adjustments */
@media (max-width: 812px) and (orientation: landscape) {
    .footer {
        padding: 30px 20px 20px !important;
    }
    
    .footer-brand {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .footer-section h4 {
        padding: 10px 0 !important;
    }
}