/*
 * Web Summit Vancouver - Footer Styles
 * Separate stylesheet for footer components
 */

/* ========== Footer Section ========== */
.footer-section {
    background: #f6f6f7;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.footer {
    background: #f6f6f7;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer Logo & Brand */
.footer img[alt*="Summit"] {
    transition: all 0.3s ease-in-out;
    filter: brightness(0.9);
}

.footer img[alt*="Summit"]:hover {
    filter: brightness(1);
    transform: scale(1.05);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease-in-out;
}

.footer-links a {
    color: #646464;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    position: relative;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-accent, #d43c05);
    transition: all 0.3s ease-in-out;
}

.footer-links a:hover {
    color: var(--brand-accent, #d43c05);
    padding-left: 8px;
}

.footer-links a:hover::before {
    width: 30px;
}

/* Footer Headings */
.footer h5 {
    color: var(--brand-primary, #0c1439);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent, #d43c05) 0%, transparent 100%);
    border-radius: 2px;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--brand-accent, #d43c05);
    transition: all 0.4s ease-in-out;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    color: #ffffff !important;
    border-color: var(--brand-accent, #d43c05);
    transform: translateY(-5px) rotate(5deg);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

/* Individual Social Media Colors */
.social-links a:hover:nth-child(1) {
    /* Facebook */
    border-color: #1877f2;
}

.social-links a:hover:nth-child(1)::before {
    background-color: #1877f2;
}

.social-links a:hover:nth-child(2) {
    /* Twitter */
    border-color: #1da1f2;
}

.social-links a:hover:nth-child(2)::before {
    background-color: #1da1f2;
}

.social-links a:hover:nth-child(3) {
    /* LinkedIn */
    border-color: #0a66c2;
}

.social-links a:hover:nth-child(3)::before {
    background-color: #0a66c2;
}

.social-links a:hover:nth-child(4) {
    /* Instagram */
    border-color: #e4405f;
}

.social-links a:hover:nth-child(4)::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-links a:hover:nth-child(5) {
    /* YouTube */
    border-color: #ff0000;
}

.social-links a:hover:nth-child(5)::before {
    background-color: #ff0000;
}

/* Footer Bottom Section */
.footer hr {
    border-color: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.footer .text-muted {
    color: #646464 !important;
    font-size: 0.875rem;
}

.footer .text-muted i {
    color: #d43c05;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* ========== Scroll to Top Button ========== */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: var(--brand-primary, #0c1439);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background-color: var(--brand-accent, #d43c05);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(212, 60, 5, 0.4);
}

#scrollTopBtn:active {
    transform: translateY(-3px);
}

#scrollTopBtn i {
    font-size: 1.25rem;
}

/* Alternative Scroll Button Animation */
#scrollTopBtn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--brand-accent, #d43c05);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

#scrollTopBtn:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

/* ========== Responsive Design ========== */

/* Tablet */
@media (max-width: 991px) {
    .footer-section,
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer h5 {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        font-size: 0.8125rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .footer-section,
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer h5 {
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .footer h5:first-child {
        margin-top: 0;
    }

    .social-links {
        justify-content: center;
        margin: 1rem 0;
    }

    .footer .row.align-items-center > div {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }

    #scrollTopBtn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    #scrollTopBtn i {
        font-size: 1.125rem;
    }
}

/* Print Styles */
@media print {
    .footer-section,
    .footer {
        page-break-before: always;
    }

    #scrollTopBtn {
        display: none !important;
    }

    .social-links a {
        border-color: #000000 !important;
    }
}
