/* ============================================================
   Cookie Consent Banner & Modal — Vitasso
   Tasarım: Site ile tamamen uyumlu, --accent renk sistemi
   ============================================================ */

/* ===== BANNER ===== */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transform: translateY(110%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--font-family, 'Inter', system-ui, -apple-system, sans-serif);
    padding: 0 16px 16px;
}
.cc-banner.cc-visible {
    transform: translateY(0);
}

@media (min-width: 640px) { .cc-banner { padding: 0 24px 20px; } }
@media (min-width: 1024px) { .cc-banner { padding: 0 32px 24px; } }

.cc-banner-card {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 77, 86, 0.97) 0%, rgba(0, 96, 100, 0.97) 40%, rgba(0, 131, 143, 0.97) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.08) inset;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient orb */
.cc-banner-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cc-banner-card {
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
        align-items: stretch;
    }
}

/* Cookie Icon */
.cc-banner-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius, 12px);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .cc-banner-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* Content */
.cc-banner-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.cc-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.cc-banner-text {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(178, 223, 219, 0.9);
    margin: 0;
}
.cc-banner-text a {
    color: var(--accent-light, #b2ebf2);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(178, 235, 242, 0.4);
    font-weight: 500;
    transition: all 0.2s;
}
.cc-banner-text a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* Actions */
.cc-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .cc-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cc-banner-actions .cc-btn { width: 100%; justify-content: center; }
}

/* ===== BUTTONS ===== */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--radius, 12px);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    font-family: inherit;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.cc-btn i {
    font-size: 15px;
}

/* Accept — solid accent gradient */
.cc-btn-accept {
    background: linear-gradient(135deg, var(--accent, #00bcd4), var(--accent-dark, #0097a7));
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}
.cc-btn-accept:hover {
    background: linear-gradient(135deg, var(--accent-dark, #0097a7), #00838f);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 188, 212, 0.4);
}

/* Reject — ghost on banner */
.cc-btn-reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cc-btn-reject:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Settings — outline */
.cc-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cc-btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

/* Save — modal only, accent solid */
.cc-btn-save {
    background: var(--accent, #00bcd4);
    color: #fff;
}
.cc-btn-save:hover {
    background: var(--accent-dark, #0097a7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Modal buttons — re-styled for white bg */
.cc-modal-footer .cc-btn-reject {
    background: #f1f5f9;
    color: var(--text-secondary, #374151);
    border: 1px solid var(--border, #e5e7eb);
}
.cc-modal-footer .cc-btn-reject:hover {
    background: #e2e8f0;
    color: var(--text, #111827);
}

/* ===== SETTINGS MODAL ===== */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
}
.cc-modal-overlay.cc-visible {
    opacity: 1;
    visibility: visible;
}

.cc-modal {
    background: #fff;
    border-radius: var(--radius-xl, 20px);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0,0,0,0.04);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cc-modal-overlay.cc-visible .cc-modal {
    transform: translateY(0) scale(1);
}

.cc-modal-header {
    padding: 24px 28px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light, #f3f4f6);
}
.cc-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text, #111827);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
}
.cc-modal-header h3 i {
    color: var(--accent, #00bcd4);
    font-size: 20px;
}
.cc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--bg, #f9fafb);
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
}
.cc-modal-close:hover {
    background: var(--bg-warm, #f3f4f6);
    color: var(--text, #111827);
}

.cc-modal-body {
    padding: 20px 28px;
    overflow-y: auto;
    flex: 1;
}
.cc-modal-intro {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 18px;
    line-height: 1.65;
}

/* Cookie Category Card */
.cc-category {
    background: var(--bg, #f9fafb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 12px);
    padding: 16px 18px;
    margin-bottom: 10px;
    transition: all 0.2s;
}
.cc-category:hover {
    border-color: var(--accent-light, #b2ebf2);
    box-shadow: 0 2px 8px rgba(0, 188, 212, 0.06);
}
.cc-category:last-child { margin-bottom: 0; }

.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cc-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.cc-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.cc-category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #111827);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.cc-category-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 5px;
}
.cc-tag-required {
    background: var(--accent-bg, #e0f7fa);
    color: var(--accent-dark, #0097a7);
}
.cc-tag-optional {
    background: var(--bg-warm, #f3f4f6);
    color: var(--text-muted, #6b7280);
}

.cc-category-desc {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted, #6b7280);
    margin: 8px 0 0 50px;
}

/* Toggle Switch */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.cc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.cc-toggle input:checked + .cc-toggle-slider {
    background: var(--accent, #00bcd4);
}
.cc-toggle input:checked + .cc-toggle-slider::after {
    transform: translateX(20px);
}
.cc-toggle input:disabled + .cc-toggle-slider {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Modal Footer */
.cc-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-light, #f3f4f6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--bg, #f9fafb);
}
@media (max-width: 480px) {
    .cc-modal-footer {
        flex-direction: column;
    }
    .cc-modal-footer .cc-btn { width: 100%; justify-content: center; }
}

/* ===== FLOATING RE-OPEN BUTTON ===== */
.cc-reopen-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 77, 86, 0.95), rgba(0, 131, 143, 0.95));
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 77, 86, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0.6) translateY(10px);
    visibility: hidden;
    color: #fff;
}
.cc-reopen-btn.cc-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
}
.cc-reopen-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 77, 86, 0.35);
    background: linear-gradient(135deg, var(--accent-dark, #0097a7), var(--accent, #00bcd4));
}

/* ===== ADMIN PREVIEW STYLES ===== */
.cc-admin-preview {
    position: relative;
    overflow: hidden;
}
.cc-admin-preview-banner {
    background: linear-gradient(135deg, rgba(0, 77, 86, 0.97), rgba(0, 131, 143, 0.97));
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #fff;
}
.cc-admin-preview-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cc-admin-preview-content {
    flex: 1;
    min-width: 0;
}
.cc-admin-preview-content strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #fff;
}
.cc-admin-preview-content p {
    font-size: 11px;
    line-height: 1.5;
    color: rgba(178, 223, 219, 0.85);
    margin: 0;
}
.cc-admin-preview-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cc-admin-preview-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
}
.cc-admin-preview-btn.primary {
    background: linear-gradient(135deg, var(--accent, #00bcd4), var(--accent-dark, #0097a7));
    color: #fff;
}
.cc-admin-preview-btn.secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.cc-admin-preview-btn.reject {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
