/**
 * GoldieCircle Cookie Consent - Bottom Bar + Left Side Panel
 * Version: 2.0.0
 */

/* ── Bottom Cookie Bar ─────────────────────────────── */
.gc-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #F59E0B;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #1F2937;
    padding: 16px 140px 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    border-top: 3px solid #B45309;
    animation: gc-slide-up 0.4s ease;
    flex-wrap: wrap;
}

@keyframes gc-slide-up {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.gc-cookie-bar-text {
    flex: 1;
    min-width: 240px;
}

.gc-cookie-bar-text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: #1F2937;
    font-weight: 500;
}

.gc-cookie-bar-text a {
    color: #1F2937;
    text-decoration: underline;
    font-weight: 600;
}

.gc-cookie-bar-link {
    background: none;
    border: none;
    color: #1F2937;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
    font-family: inherit;
    font-weight: 600;
}

.gc-cookie-bar-link:hover {
    color: #000000;
}

.gc-cookie-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gc-cookie-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.gc-cookie-btn-settings {
    background: transparent;
    color: #1F2937;
    border: 2px solid #1F2937;
}

.gc-cookie-btn-settings:hover {
    background: #1F2937;
    border-color: #1F2937;
    color: #F59E0B;
}

.gc-cookie-btn-accept {
    background: #1F2937;
    color: #F59E0B;
}

.gc-cookie-btn-accept:hover {
    background: #111827;
    color: #FBBF24;
}

.gc-cookie-bar-close {
    background: none;
    border: none;
    color: #1F2937;
    font-size: 26px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    font-weight: bold;
}

.gc-cookie-bar-close:hover {
    color: #000000;
}

/* ── Overlay ───────────────────────────────────────── */
.gc-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.45);
    animation: gc-fade-in 0.3s ease;
}

@keyframes gc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Left Side Panel ───────────────────────────────── */
.gc-cookie-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10000;
    width: 400px;
    max-width: 95vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 30px rgba(0,0,0,0.2);
    transform: translateX(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gc-cookie-panel.gc-panel-open {
    transform: translateX(0);
}

/* Panel Header */
.gc-cookie-panel-header {
    display: flex;
    justify-content: flex-end;
    padding: 14px 16px 0;
    flex-shrink: 0;
}

.gc-cookie-panel-close {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.gc-cookie-panel-close:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #222;
}

/* Panel Body */
.gc-cookie-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px 16px;
}

.gc-cookie-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
}

.gc-cookie-panel-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.65;
    margin: 0 0 20px;
}

.gc-cookie-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FCD34D;
}

/* Cookie Category Accordion */
.gc-cookie-category {
    border: 1px solid #e8e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.gc-cookie-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    background: #fafafa;
    transition: background 0.15s;
    user-select: none;
}

.gc-cookie-category-header:hover {
    background: #f3f0ff;
}

.gc-cookie-expand {
    font-size: 18px;
    color: #D97706;
    font-weight: 700;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    transition: transform 0.2s;
    line-height: 1;
}

.gc-cookie-expand.expanded {
    transform: rotate(45deg);
}

.gc-cookie-cat-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.gc-cookie-always-active {
    font-size: 14px;
    font-weight: 700;
    color: #D97706;
    white-space: nowrap;
}

.gc-cookie-category-body {
    padding: 12px 14px 14px 40px;
    background: #fff;
    border-top: 1px solid #FEF3C7;
}

.gc-cookie-category-body p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Toggle Switch */
.gc-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

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

.gc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.25s;
}

.gc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gc-cookie-toggle input:checked + .gc-toggle-slider {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

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

/* Panel Footer */
.gc-cookie-panel-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e8e8f0;
    background: #fff;
    flex-shrink: 0;
}

.gc-cookie-btn-reject {
    flex: 1;
    background: #fff;
    color: #1a1a2e;
    border: 2px solid #D97706;
}

.gc-cookie-btn-reject:hover {
    background: #FEF3C7;
    border-color: #B45309;
}

.gc-cookie-btn-confirm {
    flex: 1;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #1F2937;
    font-weight: 700;
}

.gc-cookie-btn-confirm:hover {
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
    .gc-cookie-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 12px;
    }

    .gc-cookie-bar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .gc-cookie-panel {
        width: 100%;
        max-width: 100%;
    }
}
