/* Solution Modal Styles */

.solution-expand-btn {
    display: block;
    margin: 10px auto 0;
    padding: 6px 16px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.95;
}

.solution-expand-btn:hover {
    background: #b71c1c;
    opacity: 1;
    transform: translateY(-1px);
}

.solution-expand-btn:active {
    transform: translateY(0);
}

.solution-item {
    cursor: pointer;
    position: relative;
}

.solution-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-modal-overlay.active {
    display: block;
    opacity: 1;
}

.solution-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    z-index: 9999;
    display: none;
    opacity: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.solution-modal-header {
    position: relative;
    padding: 0;
    border-bottom: 1px solid #eee;
}

.solution-modal-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    margin: 1rem;
    width: calc(100% - 2rem);
}

.solution-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.solution-modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.solution-modal-body {
    padding: 30px;
    max-height: calc(85vh - 280px - 1px);
    overflow-y: auto;
}

.solution-modal-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    color: #999;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-weight: 500;
}

.solution-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: #d32f2f;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.solution-modal-content {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.solution-modal-body::-webkit-scrollbar {
    width: 8px;
}

.solution-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.solution-modal-body::-webkit-scrollbar-thumb {
    background: #d32f2f;
    border-radius: 10px;
}

.solution-modal-body::-webkit-scrollbar-thumb:hover {
    background: #b71c1c;
}

@media (max-width: 768px) {
    .solution-modal {
        width: 95%;
        max-height: 90vh;
    }

    .solution-modal-image {
        height: 200px;
    }

    .solution-modal-body {
        padding: 20px;
        max-height: calc(90vh - 200px - 1px);
    }

    .solution-modal-title {
        font-size: 22px;
    }

    .solution-modal-content {
        font-size: 14px;
    }

    .solution-modal-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .solution-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .solution-modal-image {
        height: 180px;
    }

    .solution-modal-body {
        padding: 15px;
        max-height: calc(100vh - 180px - 1px);
    }

    .solution-modal-title {
        font-size: 20px;
    }
}

body.solution-modal-open {
    overflow: hidden;
}
