/**
 * Cookie Consent Banner & Settings — CSS
 */

/* ==================== Banner ==================== */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #667eea;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cc-banner.cc-visible {
    transform: translateY(0);
}

.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cc-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.cc-banner-icon {
    font-size: 28px;
    color: #667eea;
    flex-shrink: 0;
    line-height: 1;
}

.cc-banner-message strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #1a1a2e;
}

.cc-banner-message p {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.cc-link {
    color: #667eea;
    text-decoration: underline;
}

.cc-link:hover {
    color: #764ba2;
}

.cc-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
}

/* ==================== Buttons ==================== */
.cc-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 1.4;
}

.cc-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.cc-btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cc-btn-reject {
    background: #f0f0f0;
    color: #333;
}

.cc-btn-reject:hover {
    background: #e0e0e0;
}

.cc-btn-settings {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.cc-btn-settings:hover {
    background: #667eea;
    color: #fff;
}

.cc-btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
}

.cc-btn-save:hover {
    opacity: 0.9;
}

/* ==================== Settings Panel ==================== */
.cc-settings {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cc-settings-inner {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: auto;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.cc-settings.cc-settings-visible .cc-settings-inner {
    transform: translateY(0);
}

.cc-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cc-settings-header h5 {
    margin: 0;
    font-size: 16px;
    color: #1a1a2e;
}

.cc-settings-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.cc-settings-close:hover {
    color: #333;
}

.cc-settings-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.cc-settings-footer {
    padding: 12px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* ==================== Categories ==================== */
.cc-category {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cc-category:last-child {
    border-bottom: none;
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.cc-category-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-category-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
}

.cc-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-badge-always {
    background: #e8f5e9;
    color: #2e7d32;
}

.cc-category-desc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

/* Toggle switches */
.cc-category .form-check-input {
    width: 40px;
    height: 20px;
    cursor: pointer;
}

.cc-category .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.cc-category .form-check-input:disabled {
    opacity: 0.7;
}

/* ==================== Floating Button ==================== */
.cc-floating-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 9998;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
    transition: all 0.2s;
}

.cc-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .cc-banner-inner {
        flex-direction: column;
        padding: 14px 16px;
        gap: 12px;
    }

    .cc-banner-text {
        gap: 10px;
    }

    .cc-banner-icon {
        font-size: 22px;
    }

    .cc-banner-message strong {
        font-size: 13px;
    }

    .cc-banner-message p {
        font-size: 12px;
    }

    .cc-banner-actions {
        width: 100%;
        flex-direction: column;
        gap: 6px;
    }

    .cc-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .cc-settings-inner {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
    }

    .cc-floating-btn {
        bottom: 12px;
        left: 12px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}
