/**
 * OYROPA Bewertungs-Modal Styling
 * =================================
 * Professionelles Modal für Bewertungsergebnisse
 */

.bewertung-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bewertung-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 54, 93, 0.85);
    backdrop-filter: blur(4px);
}

.bewertung-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bewertung-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #F3F4F6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.bewertung-modal-close:hover {
    background: #E5E7EB;
    color: #1A365D;
    transform: rotate(90deg);
}

/* Header */
.bewertung-header {
    text-align: center;
    padding: 40px 30px 30px;
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    border-radius: 20px 20px 0 0;
}

.bewertung-icon {
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bewertung-header h2 {
    color: #1A365D;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.bewertung-header .text-muted {
    color: #6B7280;
    font-size: 1rem;
    margin: 0;
}

/* Body */
.bewertung-body {
    padding: 30px;
}

.bewertung-result-card {
    background: white;
}

/* Price Display */
.bewertung-price-main {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #1A365D 0%, #2563EB 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    color: white;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-range {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 10px;
}

/* Details */
.bewertung-details {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6B7280;
    font-weight: 500;
}

.detail-value {
    color: #1A365D;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

/* Hinweis */
.bewertung-hinweis {
    background: #FEF3C7;
    border-left: 4px solid #D69E2E;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    color: #92400E;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Upgrade Benefits */
.upgrade-benefits {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border: 2px solid #10B981;
    border-radius: 12px;
    padding: 25px;
}

.upgrade-benefits h4 {
    color: #1A365D;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.upgrade-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.upgrade-benefits li {
    padding: 8px 0;
    color: #1F2937;
    font-size: 0.95rem;
}

.upgrade-benefits li::before {
    content: "";
    margin-right: 10px;
}

.upgrade-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #10B981;
    margin-top: 15px;
}

/* Footer */
.bewertung-footer {
    padding: 20px 30px;
    background: #F9FAFB;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.bewertung-footer button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary {
    background: white;
    color: #6B7280;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.btn-primary {
    background: linear-gradient(135deg, #D69E2E 0%, #B8821F 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(214, 158, 46, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .bewertung-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .bewertung-header {
        padding: 30px 20px 20px;
    }

    .bewertung-header h2 {
        font-size: 1.4rem;
    }

    .bewertung-body {
        padding: 20px;
    }

    .price-value {
        font-size: 2.2rem;
    }

    .bewertung-footer {
        flex-direction: column;
        gap: 10px;
    }

    .bewertung-footer button {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bewertung-result-card > * {
    animation: slideUp 0.5s ease forwards;
}

.bewertung-result-card > *:nth-child(1) {
    animation-delay: 0.1s;
}

.bewertung-result-card > *:nth-child(2) {
    animation-delay: 0.2s;
}

.bewertung-result-card > *:nth-child(3) {
    animation-delay: 0.3s;
}

.bewertung-result-card > *:nth-child(4) {
    animation-delay: 0.4s;
}
