/* Apps Section Styles */

.apps-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.app-category {
    margin-bottom: 20px;
}

.category-title {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.category-title i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 22px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.app-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.app-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.completed {
    background-color: #4caf50;
    color: white;
}

.status-badge.in-progress {
    background-color: #ff9800;
    color: white;
}

.app-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header i {
    font-size: 28px;
    color: var(--primary-color);
}

.app-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.app-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.app-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tech-badge {
    font-size: 11px;
    padding: 4px 10px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-weight: 600;
}

.app-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.app-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.app-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.app-btn.primary:hover {
    background-color: #075ab5;
    transform: translateY(-2px);
}

.app-btn.secondary {
    background-color: #333;
    color: white;
}

.app-btn.secondary:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.app-btn.info {
    background-color: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.app-btn.info:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    padding: 15px 20px;
    background-color: var(--bg-primary);
    z-index: 10;
}

.modal-close:hover {
    color: var(--primary-color);
}

.app-detail {
    padding: 30px;
}

.app-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.app-detail-header h2 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 28px;
}

.app-year {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 10px 0;
}

.app-detail-image {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.app-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.app-detail-section {
    margin-bottom: 25px;
}

.app-detail-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 15px 0;
}

.app-detail-section h3 i {
    color: var(--primary-color);
}

.app-detail-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge-large {
    font-size: 13px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #4caf50;
    font-size: 16px;
}

.app-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.app-btn.large {
    padding: 14px 24px;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-actions {
        flex-direction: column;
    }
    
    .app-btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .app-detail {
        padding: 20px;
    }
    
    .app-detail-header {
        flex-direction: column;
    }
    
    .app-detail-actions {
        flex-direction: column;
    }
}
