/* Doza Clinic Footer CSS - Unified Styles */
/* Version: 1.0 */
/* Include this file on all pages for consistent footer styling */

/* CSS Variables for Footer */
:root {
    --footer-glass-bg: rgba(255, 255, 255, 0.7);
    --footer-glass-border: rgba(255, 255, 255, 0.8);
    --footer-text-primary: #0f172a;
    --footer-text-secondary: #64748b;
    --footer-text-tertiary: #94a3b8;
    --footer-accent: #667eea;
}

/* Footer Styles */
.site-footer {
    background: var(--footer-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--footer-glass-border);
    border-bottom: none;
    color: var(--footer-text-primary);
    margin-top: 40px;
    border-radius: 24px 24px 0 0;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    box-shadow: 0 -4px 20px rgba(31, 38, 135, 0.1);
    padding-bottom: 80px;
}

.footer-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px 20px 0;
}

/* Footer Top: Logo + Search */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
    border-bottom: 1px solid var(--footer-glass-border);
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo svg {
    display: block;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--footer-text-primary);
    letter-spacing: -0.02em;
}

.footer-search {
    position: relative;
    width: 100%;
    max-width: 280px;
}

.footer-search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--footer-text-primary);
    font-size: 13px;
    font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.footer-search-input:focus {
    border-color: var(--footer-accent);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.footer-search-input::placeholder {
    color: var(--footer-text-tertiary);
}

.footer-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--footer-text-secondary);
    pointer-events: none;
}

/* Desktop Footer Layout */
.footer-desktop {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    padding: 0 0 20px 0;
    border-bottom: 1px solid var(--footer-glass-border);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--footer-text-primary);
}

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

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

.footer-links li a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: var(--footer-accent);
}

.footer-links li .disabled-link,
.footer-accordion-links li .disabled-link,
.footer-links-inline .disabled-link {
    color: var(--footer-text-tertiary);
    cursor: default;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Mobile Footer Layout */
.footer-mobile {
    display: none;
    border-bottom: 1px solid var(--footer-glass-border);
}

.footer-accordion {
    border-bottom: 1px solid var(--footer-glass-border);
}

.footer-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--footer-text-primary);
    list-style: none;
}

.footer-accordion-title::-webkit-details-marker {
    display: none;
}

.footer-accordion-title::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: var(--footer-text-secondary);
    transition: transform 0.3s ease;
}

.footer-accordion[open] .footer-accordion-title::after {
    content: '−';
}

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

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

.footer-accordion-links li a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.footer-accordion-links li a:hover {
    color: var(--footer-accent);
}

/* Footer Bottom Info */
.footer-info {
    padding: 16px 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--footer-text-tertiary);
    text-align: center;
}

.footer-info p {
    margin: 0;
}

.footer-bottom {
    padding: 16px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-legal {
    font-size: 12px;
    line-height: 1.5;
    color: var(--footer-text-tertiary);
    margin: 0;
    text-align: center;
}

.footer-links-inline a {
    color: var(--footer-text-secondary);
    text-decoration: none;
    margin: 0 5px;
}

.footer-links-inline a:hover {
    color: var(--footer-accent);
}

.footer-country {
    font-size: 12px;
    line-height: 1.5;
    color: var(--footer-text-tertiary);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .site-footer {
        border-radius: 20px 20px 0 0;
        margin-top: 20px;
    }

    .footer-container {
        padding: 20px 20px 0;
    }

    .footer-top {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .footer-search {
        width: 100%;
        max-width: 100%;
    }

    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .footer-legal {
        font-size: 11px;
    }

    .footer-country {
        order: -1;
    }
}

/* Large screens */
@media (min-width: 768px) {
    .footer-desktop {
        grid-template-columns: repeat(4, 1fr);
    }
}
