/**
 * Enhanced Footer, Cookie Consent & Search Styles
 */

/* ===== Enhanced Footer ===== */
.site-footer-enhanced {
    background: var(--bg-secondary, #1a1a24);
    color: var(--text-secondary, #d1d5db);
}

/* Newsletter Section */
.footer-newsletter {
    background: linear-gradient(135deg, #e94560 0%, #d63651 100%);
    padding: 60px 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsletter-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.newsletter-form .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2937;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    background: #fff;
}

.newsletter-form .btn {
    padding: 16px 32px;
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form .btn:hover {
    background: #111827;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Footer Widgets */
.footer-widgets {
    padding: 60px 0;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-widget-area {
    color: var(--text-secondary, #d1d5db);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color, #e94560);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--text-secondary, #d1d5db);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-menu a:hover {
    color: var(--accent-color, #e94560);
    padding-left: 5px;
}

.footer-menu i {
    font-size: 14px;
    width: 16px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.facebook { background: #1877f2; }
.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link.youtube { background: #ff0000; }

/* Footer Bottom */
.footer-bottom {
    background: var(--bg-primary, #14141e);
    padding: 25px 0;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-tertiary, #9ca3af);
    font-size: 14px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.footer-links a {
    color: var(--text-tertiary, #9ca3af);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color, #e94560);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color, #e94560);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-hover, #d63651);
    transform: translateY(-5px);
}

/* ===== Cookie Consent Banner ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary, #1a1a24);
    border-top: 3px solid var(--accent-color, #e94560);
    padding: 25px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.cookie-text i {
    font-size: 32px;
    color: var(--accent-color, #e94560);
}

.cookie-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary, #d1d5db);
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary, #fff);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.2));
}

.btn-outline:hover {
    border-color: var(--accent-color, #e94560);
    color: var(--accent-color, #e94560);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.cookie-modal.active {
    display: block;
}

.cookie-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.cookie-modal .modal-content {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: var(--bg-secondary, #1a1a24);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1000000;
}

.cookie-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.cookie-modal .modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin: 0;
}

.modal-close {
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    color: var(--text-tertiary, #9ca3af);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-color, #e94560);
    transform: rotate(90deg);
}

.cookie-modal .modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.cookie-option {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
}

.cookie-option:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option-header label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.cookie-option-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.cookie-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.cookie-badge.required {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent-color, #e94560);
}

.cookie-option-desc {
    font-size: 14px;
    color: var(--text-tertiary, #9ca3af);
    margin: 0;
    line-height: 1.6;
}

.cookie-modal .modal-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== Enhanced Search Form ===== */
.moviepro-search-form {
    width: 100%;
    max-width: 600px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-tertiary, #1f1f2e);
    border: 2px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    border-color: var(--accent-color, #e94560);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.search-field {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 16px;
}

.search-field:focus {
    outline: none;
}

.search-field::placeholder {
    color: var(--text-tertiary, #9ca3af);
}

.search-submit {
    width: 55px;
    height: 55px;
    background: var(--accent-color, #e94560);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--accent-hover, #d63651);
}

/* Header Search (Hidden by default) */
.header-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.header-search.active {
    display: flex;
}

.header-search .search-container {
    max-width: 800px;
    width: 100%;
    position: relative;
}

.header-search .moviepro-search-form {
    max-width: 100%;
}

.header-search .search-wrapper {
    background: var(--bg-secondary, #1a1a24);
    border-color: var(--accent-color, #e94560);
}

.header-search .search-field {
    font-size: 20px;
    padding: 20px 28px;
}

.header-search .search-submit {
    width: 65px;
    height: 65px;
    font-size: 22px;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-color, #e94560);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    background: var(--accent-hover, #d63651);
    transform: rotate(90deg);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-text h3 {
        font-size: 24px;
        justify-content: center;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
