/**
 * Footer Styles - TESAS Ticketing Management System
 * Optimized for fast loading and performance
 */

/* Ensure footer renders immediately without layout shift */
.footer {
    background: linear-gradient(135deg, var(--png-black, #000) 0%, #2c2c2c 100%);
    color: var(--png-white, #fff);
    padding: 60px 0 20px;
    margin-top: 80px;
    min-height: 400px; /* Prevent layout shift */
    contain: layout style; /* CSS containment for better performance */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--png-yellow);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-logo h4 {
    margin: 0;
    color: var(--png-white);
    font-size: 1.5rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--png-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--png-yellow);
    text-decoration: none;
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--png-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--png-yellow);
    color: var(--png-black);
    transform: translateY(-2px);
    text-decoration: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item i {
    color: var(--png-yellow);
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 16px;
}

.contact-item a {
    color: var(--png-yellow);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--png-white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.user-status {
    color: var(--png-yellow);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-disclaimer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-disclaimer p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--png-red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--png-red);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 15px;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }

    .contact-item {
        flex-direction: column;
        gap: 5px;
    }
}
