/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(84, 175, 50, 0.2);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-banner.hide {
    transform: translateY(100%);
    opacity: 0;
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.cookie-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #45a028);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-icon i {
    font-size: 24px;
    color: white;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    letter-spacing: -0.2px;
}

.cookie-text p {
    font-size: 14px;
    color: #5a6c7d;
    margin: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
}

.cookie-accept {
    background: linear-gradient(135deg, var(--primary-color), #45a028);
    color: white;
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 175, 50, 0.3);
}

.cookie-settings {
    background: rgba(84, 175, 50, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(84, 175, 50, 0.2);
}

.cookie-settings:hover {
    background: rgba(84, 175, 50, 0.15);
    transform: translateY(-1px);
}

.cookie-reject {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.cookie-reject:hover {
    background: rgba(220, 53, 69, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.cookie-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5a6c7d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cookie-link:hover {
    color: var(--primary-color);
    background: rgba(84, 175, 50, 0.05);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid rgba(84, 175, 50, 0.1);
    margin-bottom: 20px;
}

.cookie-settings-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.close-settings {
    background: none;
    border: none;
    font-size: 20px;
    color: #5a6c7d;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.close-settings:hover {
    background: rgba(84, 175, 50, 0.1);
    color: var(--primary-color);
}

.cookie-settings-body {
    padding: 0 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(84, 175, 50, 0.1);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cookie-category p {
    font-size: 14px;
    color: #5a6c7d;
    line-height: 1.5;
    margin: 0;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px 24px 24px 24px;
    border-top: 1px solid rgba(84, 175, 50, 0.1);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 16px 0;
    }

    .cookie-icon {
        width: 40px;
        height: 40px;
    }

    .cookie-icon i {
        font-size: 20px;
    }

    .cookie-text h4 {
        font-size: 16px;
    }

    .cookie-text p {
        font-size: 13px;
    }

    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .cookie-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .cookie-settings-modal {
        padding: 10px;
    }

    .cookie-settings-content {
        border-radius: 12px;
    }

    .cookie-settings-header {
        padding: 20px 20px 0 20px;
    }

    .cookie-settings-header h3 {
        font-size: 18px;
    }

    .cookie-settings-body {
        padding: 0 20px;
    }

    .cookie-settings-footer {
        padding: 16px 20px 20px 20px;
        flex-direction: column;
    }

    .cookie-category h4 {
        font-size: 15px;
    }

    .cookie-category p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-container {
        padding: 0 15px;
    }

    .cookie-consent-content {
        padding: 12px 0;
    }

    .cookie-text h4 {
        font-size: 15px;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .cookie-actions {
        gap: 6px;
    }

    .cookie-switch {
        width: 44px;
        height: 22px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .cookie-consent-banner {
        background: rgba(30, 30, 30, 0.98);
        border-top-color: rgba(84, 175, 50, 0.3);
    }

    .cookie-text h4 {
        color: #ffffff;
    }

    .cookie-text p {
        color: #b0b0b0;
    }

    .cookie-settings-content {
        background: #2a2a2a;
    }

    .cookie-settings-header h3,
    .cookie-category h4 {
        color: #ffffff;
    }

    .cookie-category p {
        color: #b0b0b0;
    }

    .close-settings {
        color: #b0b0b0;
    }

    .close-settings:hover {
        color: var(--primary-color);
    }
}
