/* 
 * CAT CARE - COOKIE CONSENT STYLES
 * Matches the site design system (Poppins, CSS Variables)
 */

:root {
    --cc-primary: #f5a623;
    --cc-primary-hover: #e08e0b;
    --cc-bg: rgba(255, 255, 255, 0.98);
    --cc-text: #2c2c2c;
    --cc-text-muted: #666666;
    --cc-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --cc-radius: 16px;
    --cc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Banner Container */
.cc-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    background: var(--cc-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--cc-radius);
    padding: 24px;
    box-shadow: var(--cc-shadow);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--cc-transition);
    border: 1px solid rgba(245, 166, 35, 0.1);
    visibility: hidden;
}

@media (min-width: 768px) {
    .cc-banner {
        left: 24px;
        right: auto;
    }
}

.cc-banner.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Text Content */
.cc-header h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--cc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cc-body p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--cc-text-muted);
}

.cc-body a {
    color: var(--cc-primary);
    text-decoration: underline;
    font-weight: 500;
}

/* Actions */
.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cc-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--cc-transition);
    border: none;
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.cc-btn-accept {
    background: var(--cc-primary);
    color: white;
}

.cc-btn-accept:hover {
    background: var(--cc-primary-hover);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.cc-btn-reject {
    background: #f1f1f1;
    color: var(--cc-text);
}

.cc-btn-reject:hover {
    background: #e5e5e5;
}

.cc-btn-settings {
    background: transparent;
    border: 1px solid #ddd;
    color: var(--cc-text);
}

.cc-btn-settings:hover {
    border-color: var(--cc-primary);
    color: var(--cc-primary);
}

/* Settings Modal */
.cc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--cc-transition);
    padding: 20px;
}

.cc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cc-modal {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: var(--cc-radius);
    padding: 32px;
    box-shadow: var(--cc-shadow);
    transform: scale(0.9);
    transition: var(--cc-transition);
}

.cc-modal-overlay.active .cc-modal {
    transform: scale(1);
}

.cc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.cc-modal-header h3 {
    font-size: 1.5rem;
}

.cc-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.cc-settings-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.cc-setting-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cc-setting-info {
    flex: 1;
}

.cc-setting-info h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.cc-setting-info p {
    font-size: 0.85rem;
    color: var(--cc-text-muted);
}

/* Toggle Switch */
.cc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cc-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .cc-slider {
    background-color: var(--cc-primary);
}

input:checked + .cc-slider:before {
    transform: translateX(20px);
}

input:disabled + .cc-slider {
    background-color: #f1f1f1;
    cursor: not-allowed;
}

/* Re-open Icon */
.cc-reopen {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--cc-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: var(--cc-transition);
    border: 2px solid white;
}

.cc-reopen:hover {
    transform: scale(1.1);
    background: var(--cc-primary-hover);
}

.cc-reopen svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 480px) {
    .cc-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: none;
        border-radius: var(--cc-radius) var(--cc-radius) 0 0;
    }
}
