/* ============================================
   PREMIUM FOOTER COMPONENT
   Dental Voice Pro - 2025
   ============================================ */

/* Footer Container */
.footer-premium {
    position: relative;
    background: var(--bg-primary, #0F172A);
    color: var(--text-secondary, #E2E8F0);
    overflow: hidden;
}

/* Theme Support */
[data-theme="light"] .footer-premium {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
}

[data-theme="dark"] .footer-premium {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

/* Gradient Top Border */
.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #14b8a6 50%, #6366f1 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Background Pattern */
.footer-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 120%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(20, 184, 166, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="light"] .footer-bg-pattern {
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 120%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(20, 184, 166, 0.04) 0%, transparent 50%);
}

/* Main Content */
.footer-premium-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

/* Top Section - CTA + Newsletter */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* CTA Section */
.footer-cta h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

[data-theme="light"] .footer-cta h3 {
    color: #0f172a;
}

.footer-cta h3 span {
    background: linear-gradient(135deg, #6366f1 0%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

[data-theme="light"] .footer-cta p {
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-cta p {
        margin: 0 auto 1.5rem;
    }
}

.footer-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-cta-buttons {
        justify-content: center;
    }
}

.btn-footer-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-footer-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-footer-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .btn-footer-secondary {
    color: #334155;
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-footer-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .btn-footer-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

/* Newsletter Section */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

[data-theme="light"] .footer-newsletter h4 {
    color: #0f172a;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

[data-theme="light"] .footer-newsletter p {
    color: #64748b;
}

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

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .newsletter-input {
    background: white;
    border-color: #e2e8f0;
    color: #0f172a;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

[data-theme="light"] .newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.newsletter-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* Main Grid */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Brand Section */
.footer-brand {
    max-width: 300px;
}

@media (max-width: 1024px) {
    .footer-brand {
        max-width: none;
        text-align: center;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .footer-logo {
        justify-content: center;
    }
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

[data-theme="light"] .footer-logo-text {
    color: #0f172a;
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .footer-brand-desc {
    color: #64748b;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 1024px) {
    .footer-social {
        justify-content: center;
    }
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

[data-theme="light"] .social-link {
    background: white;
    border-color: #e2e8f0;
    color: #64748b;
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Link Columns */
.footer-links h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

[data-theme="light"] .footer-links h5 {
    color: #0f172a;
}

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

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="light"] .footer-links a {
    color: #64748b;
}

.footer-links a:hover {
    color: white;
    transform: translateX(3px);
}

[data-theme="light"] .footer-links a:hover {
    color: #6366f1;
}

.footer-links a .link-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: linear-gradient(135deg, #6366f1, #14b8a6);
    color: white;
    border-radius: 9999px;
    font-weight: 600;
}

/* Contact Info */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

[data-theme="light"] .footer-contact-item {
    color: #64748b;
}

@media (max-width: 480px) {
    .footer-contact-item {
        justify-content: center;
    }
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: #14b8a6;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item a:hover {
    color: white;
}

[data-theme="light"] .footer-contact-item a:hover {
    color: #6366f1;
}

/* Trust Badges */
.footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.5rem;
}

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

@media (max-width: 640px) {
    .footer-trust {
        justify-content: center;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .trust-badge {
    background: white;
    border-color: #e2e8f0;
    color: #64748b;
}

.trust-badge svg {
    width: 16px;
    height: 16px;
    color: #14b8a6;
}

/* Bottom Bar */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 640px) {
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

[data-theme="light"] .footer-copyright {
    color: #94a3b8;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-theme="light"] .footer-copyright a {
    color: #6366f1;
}

.footer-copyright a:hover {
    color: #14b8a6;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

[data-theme="light"] .footer-bottom-links a {
    color: #94a3b8;
}

.footer-bottom-links a:hover {
    color: white;
}

[data-theme="light"] .footer-bottom-links a:hover {
    color: #6366f1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .footer-premium::before {
        animation: none;
    }

    .back-to-top {
        transition: opacity 0.2s ease;
    }
}
