/* Universal Cookie Consent Styles */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-banner--top {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1px solid #e0e0e0;
    transform: translateY(-100%);
}

.cookie-banner--bottom {
    bottom: 0;
    top: auto;
}

.cookie-banner--dark {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #34495e;
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-banner__text {
    flex: 1;
}

.cookie-banner__title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-banner--dark .cookie-banner__title {
    color: #ecf0f1;
}

.cookie-banner__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.cookie-banner--dark .cookie-banner__message {
    color: #bdc3c7;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner__button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-banner__button--primary {
    background: #27ae60;
    color: white;
}

.cookie-banner__button--primary:hover {
    background: #229954;
}

.cookie-banner__button--secondary {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
}

.cookie-banner__button--secondary:hover {
    background: #3498db;
    color: white;
}

.cookie-banner--dark .cookie-banner__button--secondary {
    color: #3498db;
    border-color: #3498db;
}

.cookie-banner--dark .cookie-banner__button--secondary:hover {
    background: #3498db;
    color: white;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal--visible {
    opacity: 1;
    visibility: visible;
}

.cookie-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-modal__content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal--visible .cookie-modal__content {
    transform: scale(1);
}

.cookie-modal__header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
}

.cookie-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal__close:hover {
    color: #666;
}

.cookie-modal__body {
    padding: 24px;
    max-height: 50vh;
    overflow-y: auto;
}

.cookie-modal__description {
    margin: 0 0 24px 0;
    color: #666;
    line-height: 1.5;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}

.cookie-category__header {
    margin-bottom: 8px;
}

.cookie-category__label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-category__checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-category__checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category__name {
    font-size: 16px;
    color: #2c3e50;
}

.cookie-category__required {
    font-size: 12px;
    color: #e74c3c;
    font-weight: normal;
}

.cookie-category__description {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.cookie-category__details {
    margin-top: 12px;
}

.cookie-category__details summary {
    cursor: pointer;
    font-size: 14px;
    color: #3498db;
    font-weight: 500;
}

.cookie-category__cookies {
    margin: 8px 0 0 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.cookie-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.cookie-item:last-child {
    margin-bottom: 0;
}

.cookie-name {
    font-weight: 600;
    color: #2c3e50;
    font-family: monospace;
    font-size: 13px;
}

.cookie-platform {
    font-size: 12px;
    color: #3498db;
    font-weight: 500;
    margin: 2px 0;
}

.cookie-description {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.cookie-modal__footer {
    padding: 20px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-modal__button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-modal__button--primary {
    background: #27ae60;
    color: white;
}

.cookie-modal__button--primary:hover {
    background: #229954;
}

.cookie-modal__button--secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-modal__button--secondary:hover {
    background: #f5f5f5;
}

/* Cookie Preferences Icon Styles */
.cookie-preferences-icon {
    position: fixed;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cookie-preferences-icon--visible {
    opacity: 1;
    transform: scale(1);
}

.cookie-preferences-icon--bottom-right {
    bottom: 20px;
    right: 20px;
}

.cookie-preferences-icon--bottom-left {
    bottom: 20px;
    left: 20px;
}

.cookie-preferences-icon--top-right {
    top: 20px;
    right: 20px;
}

.cookie-preferences-icon--top-left {
    top: 20px;
    left: 20px;
}

.cookie-preferences-icon__button {
    min-width: 50px;
    height: 50px;
    background: #3498db;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    transition: all 0.2s ease;
    color: white;
    white-space: nowrap;
}

.cookie-preferences-icon__button:hover {
    background: #2980b9;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.cookie-preferences-icon__button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-preferences-icon__text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Dimensiuni diferite */
.cookie-preferences-icon--small .cookie-preferences-icon__button {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    gap: 6px;
}

.cookie-preferences-icon--small .cookie-preferences-icon__button svg {
    width: 20px;
    height: 20px;
}

.cookie-preferences-icon--small .cookie-preferences-icon__text {
    font-size: 10px;
}

.cookie-preferences-icon--large .cookie-preferences-icon__button {
    min-width: 60px;
    height: 60px;
    padding: 0 20px;
    gap: 10px;
}

.cookie-preferences-icon--large .cookie-preferences-icon__button svg {
    width: 28px;
    height: 28px;
}

.cookie-preferences-icon--large .cookie-preferences-icon__text {
    font-size: 14px;
}

/* Tema întunecată */
.cookie-preferences-icon--dark .cookie-preferences-icon__button {
    background: #2c3e50;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.cookie-preferences-icon--dark .cookie-preferences-icon__button:hover {
    background: #34495e;
    box-shadow: 0 6px 16px rgba(44, 62, 80, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner__actions {
        justify-content: center;
    }

    .cookie-banner__button {
        flex: 1;
        min-width: 0;
    }

    .cookie-modal__content {
        width: 95%;
        margin: 20px;
    }

    .cookie-modal__header,
    .cookie-modal__body,
    .cookie-modal__footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cookie-modal__footer {
        flex-direction: column;
    }

    /* Iconița mai mică pe mobile */
    .cookie-preferences-icon--bottom-right,
    .cookie-preferences-icon--bottom-left {
        bottom: 15px;
    }

    .cookie-preferences-icon--bottom-right {
        right: 15px;
    }

    .cookie-preferences-icon--bottom-left {
        left: 15px;
    }

    .cookie-preferences-icon__button {
        min-width: 45px;
        height: 45px;
        padding: 0 14px;
        gap: 7px;
    }

    .cookie-preferences-icon__button svg {
        width: 22px;
        height: 22px;
    }

    .cookie-preferences-icon__text {
        font-size: 11px;
    }
}
