/* Frontend Styles */

/* Banner */
.vmcm-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: vmcmSlideIn 0.3s ease-out;
}

.vmcm-banner-bottom {
    bottom: 0;
}

.vmcm-banner-top {
    top: 0;
}

@keyframes vmcmSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.vmcm-banner-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vmcm-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vmcm-banner-logo {
    flex-shrink: 0;
}

.vmcm-banner-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.vmcm-banner-text {
    flex: 1;
    min-width: 250px;
}

.vmcm-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.vmcm-banner-text a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.vmcm-banner-text a:hover {
    text-decoration: underline;
}

.vmcm-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Buttons */
.vmcm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vmcm-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.vmcm-btn-primary {
    background-color: #c4a961;
    color: #000;
}

.vmcm-btn-secondary {
    background-color: #f0f0f0;
    color: #333;
}

/* Modal */
.vmcm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: vmcmFadeIn 0.3s ease;
}

@keyframes vmcmFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.vmcm-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.vmcm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.vmcm-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.vmcm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: inherit;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vmcm-modal-close:hover {
    opacity: 0.7;
}

.vmcm-modal-body {
    padding: 20px;
}

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

.vmcm-cookie-category {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
}

.vmcm-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.vmcm-category-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    flex: 1;
}

.vmcm-category-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.vmcm-category-name {
    font-weight: 600;
    font-size: 14px;
}

.vmcm-required-badge {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.vmcm-category-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.vmcm-modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    justify-content: flex-end;
}

/* Floating Button */
.vmcm-floating-btn {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 998;
    animation: vmcmFadeIn 0.3s ease;
}

.vmcm-floating-btn-left {
    left: 30px;
}

.vmcm-floating-btn-right {
    right: 30px;
}

.vmcm-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.vmcm-floating-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .vmcm-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .vmcm-banner-text {
        width: 100%;
    }

    .vmcm-banner-buttons {
        width: 100%;
        flex-direction: column;
    }

    .vmcm-btn {
        width: 100%;
        text-align: center;
    }

    .vmcm-modal-content {
        max-height: 90vh;
    }

    .vmcm-modal-footer {
        flex-direction: column;
    }

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

    .vmcm-floating-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
    }

    .vmcm-floating-btn-left {
        left: 15px;
    }

    .vmcm-floating-btn-right {
        right: 15px;
    }
}

/* Accessibility */
.vmcm-btn:focus,
.vmcm-modal-close:focus,
.vmcm-category-label:focus,
.vmcm-floating-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .vmcm-banner,
    .vmcm-modal,
    .vmcm-floating-btn {
        display: none !important;
    }
}
