/* Footer Styles - Global Layout Component */

/* Footer Container */
.footer-elegant {
    background: var(--gradient-footer);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

/* Footer Top Section */
.footer-top {
    padding: 3rem 0 2rem;
    position: relative;
    z-index: 1;
}

/* Footer Brand Section */
.footer-brand {
    margin-bottom: 2rem;
}

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

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.brand-name span {
    display: inline;
    line-height: 1.0;
}

.brand-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    margin-top: 0;
    clear: both;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

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

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

/* Footer Links Sections */
.footer-links {
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
}

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

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-left: 0;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-gold);
}

.footer-link:hover::before {
    opacity: 1;
    left: -10px;
}

/* Footer Contact Section */
.footer-contact {
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-icon i {
    color: var(--primary-gold);
    font-size: 1rem;
}

.contact-details h6 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Footer Bottom Section */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

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

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

.footer-bottom-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.footer-bottom-link:hover::after {
    width: 100%;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, var(--primary-navy) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* GDPR Cookies Modal */
.gdpr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.gdpr-modal.show {
    display: flex;
}

.gdpr-modal-content {
    background: #ffffff;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gdpr-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.gdpr-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.gdpr-header h3 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gdpr-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.gdpr-body {
    padding: 2rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category-info h4 {
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.cookie-category-info p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    flex-shrink: 0;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label.disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

input[type="checkbox"]:checked + .toggle-label {
    background: #28a745;
}

input[type="checkbox"]:checked + .toggle-label::after {
    transform: translateX(24px);
}

.gdpr-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gdpr-links {
    display: flex;
    gap: 1rem;
}

.gdpr-link {
    color: var(--secondary-blue);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.gdpr-link:hover {
    color: var(--secondary-purple);
}

.gdpr-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.gdpr-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.gdpr-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.gdpr-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.gdpr-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.gdpr-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-top {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .brand-logo {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .brand-name {
        flex-direction: row;
        font-size: 1.4rem;
        gap: 0.2rem;
        white-space: nowrap;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .gdpr-modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .gdpr-header {
        padding: 1.5rem;
    }
    
    .gdpr-body {
        padding: 1.5rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .gdpr-footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .gdpr-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding: 2rem 0 1rem;
    }
    
    .brand-name {
        font-size: 1.2rem;
        line-height: 1.1;
        flex-direction: row;
        gap: 0.15rem;
        white-space: nowrap;
    }
    
    .brand-name span {
        line-height: 1.0;
    }
    
    .brand-description {
        margin-top: 1rem;
    }
    
    .brand-logo {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .gdpr-modal {
        padding: 0.5rem;
    }
    
    .gdpr-header {
        padding: 1rem;
    }
    
    .gdpr-body {
        padding: 1rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .gdpr-footer {
        padding: 1rem;
    }
    
    .gdpr-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
