/* ========================================
   GDPR Cookie Consent Banner
   Golabek.pl - Matching brand design
   ======================================== */

/* Overlay */
.gc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 20, .45);
    z-index: 99998;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.gc-overlay.gc-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Banner */
.gc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #1a1a14;
    color: #f5f0e8;
    padding: 0;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .25);
    font-family: 'Lato', sans-serif;
}
.gc-banner.gc-visible {
    transform: translateY(0);
}

/* Inner container */
.gc-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Icon */
.gc-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
}

/* Text block */
.gc-text {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.6;
    color: #ccc7b8;
}
.gc-text strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #c9a84c;
    margin-bottom: 4px;
}
.gc-text a {
    color: #c9a84c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.gc-text a:hover {
    color: #e0c06a;
}

/* Buttons wrapper */
.gc-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Base button */
.gc-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Accept all */
.gc-btn--accept {
    background: #c9a84c;
    color: #1a1a14;
}
.gc-btn--accept:hover {
    background: #e0c06a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, .3);
}

/* Reject / Necessary only */
.gc-btn--reject {
    background: transparent;
    color: #ccc7b8;
    border: 1px solid #555;
}
.gc-btn--reject:hover {
    border-color: #c9a84c;
    color: #c9a84c;
}

/* Settings toggle */
.gc-btn--settings {
    background: transparent;
    color: #888;
    border: none;
    padding: 10px 12px;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-transform: none;
    letter-spacing: 0;
}
.gc-btn--settings:hover {
    color: #c9a84c;
}

/* Settings panel */
.gc-settings {
    display: none;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid #333;
    margin-top: 8px;
}
.gc-settings.gc-open {
    display: block;
}

.gc-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a24;
}
.gc-setting-row:last-child {
    border-bottom: none;
}

.gc-setting-label {
    font-size: 14px;
    color: #ccc7b8;
}
.gc-setting-label small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Toggle switch */
.gc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.gc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.gc-toggle-slider {
    position: absolute;
    inset: 0;
    background: #444;
    border-radius: 24px;
    cursor: pointer;
    transition: .2s;
}
.gc-toggle-slider:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #f5f0e8;
    border-radius: 50%;
    transition: .2s;
}
.gc-toggle input:checked + .gc-toggle-slider {
    background: #c9a84c;
}
.gc-toggle input:checked + .gc-toggle-slider:before {
    transform: translateX(20px);
}
.gc-toggle input:disabled + .gc-toggle-slider {
    opacity: .5;
    cursor: not-allowed;
}

/* Floating re-open button */
.gc-reopen {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 99990;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a14;
    border: 1px solid #333;
    color: #c9a84c;
    font-size: 22px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
    line-height: 1;
}
.gc-reopen:hover {
    background: #2a2a24;
    border-color: #c9a84c;
    transform: scale(1.1);
}
.gc-reopen.gc-visible {
    display: flex;
}

/* Mobile */
@media (max-width: 768px) {
    .gc-inner {
        padding: 20px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .gc-icon {
        display: none;
    }
    .gc-buttons {
        flex-direction: column;
    }
    .gc-btn {
        width: 100%;
        text-align: center;
    }
    .gc-btn--settings {
        text-align: center;
    }
}
