/**
 * Cookie Consent Banner Styles
 * GDPR/ePrivacy compliant design
 */

/* ============================================
   Banner Styles
   ============================================ */

.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.99) 100%);
    border-top: 1px solid rgba(204, 233, 107, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    padding: 0;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cc-banner.cc-show {
    transform: translateY(0);
    opacity: 1;
}

.cc-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cc-banner-text {
    flex: 1;
    min-width: 280px;
}

.cc-banner-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.cc-banner-text p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

.cc-banner-text a {
    color: #CCE96B;
    text-decoration: none;
    transition: color 0.2s;
}

.cc-banner-text a:hover {
    color: #dff08a;
    text-decoration: underline;
}

.cc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* ============================================
   Button Styles
   ============================================ */

.cc-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.cc-btn-primary {
    background: #CCE96B;
    color: #000;
}

.cc-btn-primary:hover {
    background: #dff08a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 233, 107, 0.3);
}

.cc-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.cc-btn-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cc-btn-reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Modal Styles
   ============================================ */

.cc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

.cc-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cc-modal-content {
    position: relative;
    background: linear-gradient(180deg, #1e1e1e 0%, #161616 100%);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cc-modal.cc-show .cc-modal-content {
    transform: translateY(0);
}

.cc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cc-modal-header h2 {
    font-size: 1.3em;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.cc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.cc-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cc-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.cc-modal-intro {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.cc-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

/* ============================================
   Category Styles
   ============================================ */

.cc-category {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s;
}

.cc-category:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.cc-category:last-child {
    margin-bottom: 0;
}

.cc-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

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

.cc-category-info h3 {
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px 0;
}

.cc-category-info p {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   Toggle Switch Styles
   ============================================ */

.cc-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

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

.cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
}

.cc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cc-toggle input:checked + .cc-toggle-slider {
    background-color: #CCE96B;
}

.cc-toggle input:checked + .cc-toggle-slider:before {
    transform: translateX(24px);
    background-color: #000;
}

.cc-toggle input:focus + .cc-toggle-slider {
    box-shadow: 0 0 0 3px rgba(204, 233, 107, 0.3);
}

.cc-toggle-disabled {
    opacity: 0.6;
}

.cc-toggle-disabled .cc-toggle-slider {
    cursor: not-allowed;
    background-color: #4a4a4a;
}

.cc-toggle-disabled input:checked + .cc-toggle-slider {
    background-color: #6a8a40;
}

/* ============================================
   Cookie Settings Link (for footer)
   ============================================ */

.cc-settings-link {
    color: #CCE96B;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.cc-settings-link:hover {
    color: #dff08a;
    text-decoration: underline;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .cc-banner-content {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }

    .cc-banner-actions {
        width: 100%;
        justify-content: center;
    }

    .cc-btn {
        padding: 10px 16px;
        font-size: 0.9em;
        flex: 1;
        min-width: 0;
    }

    .cc-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .cc-modal-header {
        padding: 16px 20px;
    }

    .cc-modal-body {
        padding: 16px 20px;
    }

    .cc-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .cc-modal-footer .cc-btn {
        width: 100%;
    }

    .cc-category {
        padding: 14px;
    }

    .cc-category-header {
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .cc-banner-actions {
        flex-direction: column;
    }

    .cc-btn {
        width: 100%;
    }
}

