/* Footer Styles - Mobile First */

.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    margin-top: auto;
    transition: background-color var(--transition-normal);
}

.footer-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

/* Site Title in Footer */
.footer-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.footer-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: var(--spacing-xs) var(--spacing-sm);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-links .separator {
    color: var(--text-tertiary);
    user-select: none;
}

/* Newsletter Subscription */
.footer-newsletter {
    max-width: min(100%, 32.5rem);
    margin: 0 auto;
    width: 100%;
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    width: 100%;
}

.newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    outline: none;
}

.newsletter-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form button {
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
}

/* Desktop Optimization */
@media (min-width: 1000px) {
    .footer-container {
        max-width: 70%;
    }
}

/* Mobile Optimization */
@media (max-width: 999px) {
    .footer-container {
        max-width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-links .separator {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }
}

/* Copyright/Bottom Text */
.footer-bottom {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
}

/* Newsletter Success Modal */
.newsletter-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.newsletter-modal {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 32rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-modal-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.newsletter-modal h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.newsletter-modal-message {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.newsletter-modal-note {
    background-color: var(--bg-secondary);
    border-left: 0.25rem solid #f59e0b;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.newsletter-modal-note i {
    color: #f59e0b;
}

.newsletter-modal-note strong {
    color: var(--text-primary);
}

.newsletter-modal-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-modal-close:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.3);
}

@media (max-width: 37.5rem) {
    .newsletter-modal {
        padding: 2rem 1.5rem;
    }

    .newsletter-modal-icon {
        font-size: 3rem;
    }

    .newsletter-modal h2 {
        font-size: 1.5rem;
    }

    .newsletter-modal-message {
        font-size: 1rem;
    }
}