/*
 * IKON HR Theme - Footer & Cookie Consent Styles
 * Extracted per March Audit (HIGH 6)
 */

/* Mobile Footer Styles */
@media (max-width: 1200px) {
    .footer-mega-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .footer-mega-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .footer-mega-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

.footer-column a:hover {
    color: #fff !important;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f3d7a 0%, #1e5ba3 100%);
    color: #fff;
    z-index: 99999;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-consent-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-icon {
    font-size: 2.5rem;
    color: #f47920;
    flex-shrink: 0;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-consent-text p {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-learn-more {
    color: #7dbd42;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.cookie-learn-more:hover {
    color: #f47920;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-reject {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-reject:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-customize {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid transparent;
}

.cookie-btn-customize:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cookie-btn-accept {
    background: #f47920;
    color: #fff;
    border: 2px solid #f47920;
}

.cookie-btn-accept:hover {
    background: #e06810;
    border-color: #e06810;
    transform: translateY(-2px);
}

/* Cookie Preferences Panel */
.cookie-preferences-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    color: #333;
    z-index: 100000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
}

.cookie-preferences-header h4 {
    margin: 0;
    color: #1e5ba3;
    font-size: 1.2rem;
}

.cookie-preferences-header h4 i {
    margin-right: 10px;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
}

.cookie-close-btn:hover {
    color: #f47920;
}

.cookie-preferences-body {
    padding: 20px 30px;
}

.cookie-category {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-category-info strong {
    color: #1e5ba3;
    font-size: 1rem;
}

.cookie-required {
    color: #7dbd42;
    font-size: 0.85rem;
    font-weight: 500;
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 60px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked+.cookie-slider {
    background-color: #7dbd42;
}

.cookie-toggle input:disabled+.cookie-slider {
    background-color: #7dbd42;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-toggle input:checked+.cookie-slider:before {
    transform: translateX(24px);
}

.cookie-preferences-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    text-align: center;
    position: sticky;
    bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: center;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .cookie-category p {
        padding-left: 0;
        margin-top: 10px;
    }

    .cookie-preferences-body,
    .cookie-preferences-header,
    .cookie-preferences-footer {
        padding: 15px 20px;
    }
}