/* Footer */
.footer {
    background: var(--dark-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-image {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.brand-tagline {
    margin-bottom: 1rem;
}

.brand-tagline h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    background: linear-gradient(135deg, #dfdfdf 0%, #c1ddfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.brand-tagline h3:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.brand-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0271FC, #74b9ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.social-link:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(2, 113, 252, 0.5);
    color: white;
    box-shadow: 0 8px 25px rgba(2, 113, 252, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.02);
}

/* Footer Links Section */
.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

/* Admin Section Link */
.footer-admin-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-link:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Newsletter Section */
.footer-newsletter {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-newsletter p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Override Infomaniak form styles in footer */
.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e h4 {
    display: none !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e span {
    display: none !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e input[type="email"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 0.9rem !important;
    padding: 0.875rem 1rem !important;
    height: auto !important;
    width: 500px !important;
    box-sizing: border-box !important;
    margin-bottom: 0.75rem !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e input[type="email"]:focus {
    outline: none !important;
    border-color: #4A9EFF !important;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-submit {
    text-align: center !important;
    margin-top: 1rem !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-submit input[type="submit"] {
    background: #4A9EFF !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: auto !important;
    min-width: 200px !important;
    height: auto !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-submit input[type="submit"]:hover {
    background: #3A8EEF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3) !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-submit input[type="submit"].disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Style the success message */
.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-success {
    background: rgba(74, 158, 255, 0.1) !important;
    border: 1px solid rgba(74, 158, 255, 0.3) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-top: 1rem !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-success h4 {
    color: #4A9EFF !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-success p,
.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-success p a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Style error states */
.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-input.inf-error input {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
}

.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-input.inf-error label,
.footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-input.inf-error span.inf-message {
    color: #ff6b6b !important;
}

/* Style ALTCHA widget */
.footer-newsletter altcha-widget {
    margin: 0.75rem 0 !important;
}

/* Style RGPD/privacy text */
.footer-newsletter .inf-rgpd {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem !important;
    margin: 0.75rem 0 !important;
    line-height: 1.4 !important;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-company {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.xdrip-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.company-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.company-info p:first-child {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.company-info p:last-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Legacy Footer CSS for backward compatibility */
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.newsletter {
    margin-top: 2rem;
}

.newsletter h4 {
    margin-bottom: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.newsletter-input::placeholder {
    color: var(--text-secondary);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px rgba(2, 113, 252, 0.2);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 113, 252, 0.4);
}

.newsletter-disclaimer {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0271FC, #74b9ff);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.footer-social-link:hover {
    transform: translateY(-1px) scale(1.02);
    border-color: rgba(2, 113, 252, 0.5);
    color: white;
    box-shadow: 0 8px 25px rgba(2, 113, 252, 0.3);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.footer-social-link:hover svg {
    transform: scale(1.02);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Custom styling for external statslive.info form */
.footer-newsletter iframe,
.footer-newsletter form[data-source="statslive"],
.footer-newsletter .statslive-form,
.footer-newsletter div[id*="statslive"],
.footer-newsletter div[class*="statslive"],
.footer-newsletter div[style*="background"],
.footer-newsletter div[style*="white"] {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Target any container divs that might have white backgrounds */
.footer-newsletter div,
.footer-newsletter .statslive-form div,
.footer-newsletter form div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Style the form container */
.footer-newsletter .statslive-form,
.footer-newsletter form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Style input fields */
.footer-newsletter input[type="email"],
.footer-newsletter input[type="text"],
.footer-newsletter .statslive-form input,
.footer-newsletter form input {
    padding: 0.875rem 1rem !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 0.75rem !important;
}

.footer-newsletter input[type="email"]::placeholder,
.footer-newsletter input[type="text"]::placeholder,
.footer-newsletter .statslive-form input::placeholder,
.footer-newsletter form input::placeholder {
    color: rgba(255,255,255,0.6) !important;
    opacity: 1 !important;
}

.footer-newsletter input[type="email"]:focus,
.footer-newsletter input[type="text"]:focus,
.footer-newsletter .statslive-form input:focus,
.footer-newsletter form input:focus {
    outline: none !important;
    border-color: #4A9EFF !important;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2) !important;
    background: rgba(255,255,255,0.12) !important;
}

/* Style submit buttons */
.footer-newsletter button[type="submit"],
.footer-newsletter input[type="submit"],
.footer-newsletter .statslive-form button,
.footer-newsletter form button,
.footer-newsletter button {
    padding: 0.875rem 1rem !important;
    background: #4A9EFF !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    font-size: 0.9rem !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 0 !important;
}

.footer-newsletter button[type="submit"]:hover,
.footer-newsletter input[type="submit"]:hover,
.footer-newsletter .statslive-form button:hover,
.footer-newsletter form button:hover,
.footer-newsletter button:hover {
    background: #3A8EEF !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3) !important;
}

/* Style any labels or text */
.footer-newsletter label,
.footer-newsletter .statslive-form label,
.footer-newsletter form label {
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Style any checkboxes or additional elements */
.footer-newsletter input[type="checkbox"] {
    margin-right: 0.5rem !important;
    accent-color: #0271FC !important;
}

/* Hide any unwanted elements that might come from the external script */
.footer-newsletter .statslive-branding,
.footer-newsletter .powered-by,
.footer-newsletter [class*="powered"],
.footer-newsletter [id*="powered"] {
    display: none !important;
}

/* Force override any inline styles that create white backgrounds */
.footer-newsletter * {
    background-color: transparent !important;
}

.footer-newsletter *[style*="background-color: white"],
.footer-newsletter *[style*="background-color: #fff"],
.footer-newsletter *[style*="background-color: #ffffff"],
.footer-newsletter *[style*="background: white"],
.footer-newsletter *[style*="background: #fff"],
.footer-newsletter *[style*="background: #ffffff"] {
    background-color: transparent !important;
    background: transparent !important;
}

/* Ensure proper responsive styling */
@media (max-width: 768px) {
    .footer-content {
        gap: 3rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-newsletter {
        padding: 1.5rem;
    }
    
    .footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e {
        max-width: 100% !important;
    }
    
    .footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-submit input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .footer-company {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-newsletter .statslive-form,
    .footer-newsletter iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .footer-newsletter input[type="email"],
    .footer-newsletter .newsletter-input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .footer-newsletter button[type="submit"],
    .footer-newsletter .newsletter-btn {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-newsletter {
        padding: 1rem;
    }
    
    .footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e input[type="email"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .footer-newsletter .inf-main_f381234611baddc30e89d25b3bfe6d6e .inf-submit input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .footer-newsletter h4 {
        font-size: 1rem;
    }
    
    .footer-newsletter p {
        font-size: 0.9rem;
    }
}

/* Klingon Red Theme Overrides for Footer */
.klingon-theme .footer-cta-btn {
    background: linear-gradient(135deg, #CC0000, #FF4444);
    border-color: rgba(204, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.3);
}

.klingon-theme .footer-cta-btn:hover {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    border-color: rgba(204, 0, 0, 0.7);
    box-shadow: 0 12px 35px rgba(204, 0, 0, 0.4);
}

.klingon-theme .footer-link:hover {
    color: #FF4444;
}

.klingon-theme .footer-social-links a:hover {
    background: rgba(204, 0, 0, 0.2);
    border-color: rgba(204, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
}

.klingon-theme .statslive-form input:focus,
.klingon-theme .statslive-form textarea:focus {
    border-color: #CC0000;
    box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.2);
}

.klingon-theme .statslive-form button[type="submit"] {
    background: linear-gradient(135deg, #CC0000, #FF4444);
    border-color: rgba(204, 0, 0, 0.5);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.3);
}

.klingon-theme .statslive-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #FF4444, #CC0000);
    border-color: rgba(204, 0, 0, 0.7);
    box-shadow: 0 12px 35px rgba(204, 0, 0, 0.4);
} 