/**
 * BadProjekt-Pass Widget Styles
 * Für Merkliste-Buttons, Toast-Messages und Popup
 */

/* Hidden Klasse - Buttons sind standardmäßig versteckt */
.bp-add-to-merkliste.hidden,
[data-bp-merkliste-id].hidden,
.bp-add-to-project.hidden,
[data-bp-product-id].hidden,
.bp-download-link.hidden,
[data-bp-download-id].hidden {
    display: none !important;
}

/* Merkliste-Button: In Merkliste */
.bp-add-to-merkliste.merkliste-true,
[data-bp-merkliste-id].merkliste-true,
.bp-add-to-project.merkliste-true,
[data-bp-product-id].merkliste-true {
    background-color: #4CAF50 !important;
    color: white !important;
    opacity: 1;
}

.bp-add-to-merkliste.merkliste-true:hover,
[data-bp-merkliste-id].merkliste-true:hover,
.bp-add-to-project.merkliste-true:hover,
[data-bp-product-id].merkliste-true:hover {
    background-color: #45a049 !important;
}

/* Toast-Messages */
.bp-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    font-size: 14px;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.bp-toast-success {
    background: #4CAF50;
}

.bp-toast-error {
    background: #f44336;
}

/* Popup Styles */
.bp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.bp-popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

.bp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s;
}

.bp-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

.bp-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.bp-popup-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.bp-popup-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.bp-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.bp-feature-check {
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
}

.bp-popup-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.bp-tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.bp-tab-btn:hover {
    color: #4CAF50;
}

.bp-tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.bp-popup-form {
    margin-top: 20px;
}

.bp-form-group {
    margin-bottom: 20px;
}

.bp-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.bp-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bp-form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.bp-restore-group {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.bp-btn-restore {
    margin-top: 10px;
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.bp-btn-restore:hover {
    background: #45a049;
}

.bp-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.bp-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.bp-checkbox-label a {
    color: #4CAF50;
    text-decoration: underline;
}

.bp-btn-primary {
    width: 100%;
    padding: 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.bp-btn-primary:hover {
    background: #45a049;
}

.bp-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.bp-footer-text {
    font-size: 14px;
    color: #666;
}

.bp-btn-link {
    background: none;
    border: none;
    color: #4CAF50;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.bp-btn-link:hover {
    color: #45a049;
}

.bp-show-restore {
    display: block;
    margin-top: 10px;
    color: #666;
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}

.bp-show-restore:hover {
    color: #4CAF50;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

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