/* ========== Case Modal ========== */
.case-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.case-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.case-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.case-modal-close:hover {
    background: #333;
    color: white;
}

.case-modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid #eee;
}

.case-modal-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #333;
}

.case-modal-body {
    padding: 30px 40px 40px;
}

.case-modal-body > p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.case-modal-features {
    margin-bottom: 30px;
}

.case-modal-features h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}

.case-modal-features ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.case-modal-features li {
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-modal-features li::before {
    content: '✓';
    color: #667eea;
    font-weight: bold;
}

.case-modal-screenshots h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.screenshot-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
}

.screenshot-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.screenshot-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.screenshot-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.screenshot-item:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.screenshot-item:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.screenshot-item:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Case Link */
.case-link {
    display: inline-block;
    margin-top: 16px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.case-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .case-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .case-modal-header {
        padding: 30px 20px 15px;
    }
    
    .case-modal-body {
        padding: 20px;
    }
    
    .case-modal-features ul {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}
