/* ===============================
   Premium Footer - OpenPlayground
   Modern, Professional, Dark Theme
   =============================== */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    padding: 4rem 0 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Main Footer Content Grid */
.footer-content {
    display: grid;
    align-items: flex-start;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== Brand Section ==================== */
.footer-brand-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: linear-gradient(135deg, #a0522d00 0%, var(--primary-500) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    flex-shrink: 0;
}

.logo-icon i {
    font-size: 1.75rem;
    color: white !important;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #a0522d00;
    text-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.footer-description {
    color: #b0b0b0;
    font-size: 0.9375rem;
    line-height: 1.7;
    text-align: left;
}

/* Social Section */
.footer-social-section {
    margin-top: 0.5rem;
}

.social-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.875rem;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover i {
    color: white;
    transform: scale(1.1);
}

/* ==================== Links Sections ==================== */
.footer-links-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-500) 0%, transparent 100%);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    text-align: left;
    width: fit-content;
    padding: 0.375rem 0;
}

.footer-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-500);
    transform: translateX(6px);
}

.footer-link:hover i {
    transform: translateX(-2px);
}

/* ==================== Newsletter Section ==================== */
.footer-newsletter-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-description {
    color: #b0b0b0;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.125rem;
    color: #808080;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.input-wrapper input::placeholder {
    color: #808080;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}


/* Contact Info */
.footer-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-500);
}

.contact-link i {
    font-size: 1rem;
}

/* ==================== Bottom Bar ==================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 0;
    width: 100%;
}

.footer-copyright {
    color: #808080;
    font-size: 0.875rem;
    text-align: left;
    margin: 0;
}

.brand-highlight {
    color: var(--primary-500);
    font-weight: 600;
}

.heart {
    color: var(--primary-500);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1);
    }
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.footer-bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #808080;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-bottom-link i {
    font-size: 0.875rem;
}

.footer-bottom-link:hover {
    color: var(--primary-500);
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

.divider {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
        margin-top: 3rem;
    }

    .footer-container {
        padding: 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
        padding: 1.5rem 0;
    }

    .footer-copyright,
    .footer-bottom-right {
        text-align: center;
    }

    .footer-bottom-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-social {
        gap: 0.625rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
    }
}

/* Dark theme is default, but ensuring consistency */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

/* Light theme adjustments */
[data-theme="light"] .footer {
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.15);
}

[data-theme="light"] .footer::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .footer-description,
[data-theme="light"] .newsletter-description,
[data-theme="light"] .footer-link,
[data-theme="light"] .contact-link {
    color: #666666;
}

[data-theme="light"] .footer-section-title {
    color: #222222;
}

[data-theme="light"] .social-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #666666;
}

[data-theme="light"] .input-wrapper input {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #222222;
}

[data-theme="light"] .input-wrapper input::placeholder {
    color: #999999;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-copyright,
[data-theme="light"] .footer-bottom-link {
    color: #666666;
}

[data-theme="light"] .footer-content {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-contact {
    border-top-color: rgba(0, 0, 0, 0.08);
}
