/* styles/modal.css - Modal specific styles */

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(var(--primary-color-rgb), 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.project-links {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.project-links li {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.project-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.screenshot {
    width: 100%;
    border-radius: 8px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(var(--primary-color-rgb), 0.1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
}

/* Tag styling for modal */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}
/* Modal header - only show name if no logo */
.modal-header {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-right: 50px;
}

/* Video section styling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.project-video {
    width: 100%;
    border-radius: 8px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(var(--primary-color-rgb), 0.1);
}

/* Modal header styles */
.modal-header {
    display: flex;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header.with-logo h2 {
    margin-left: 20px;
}

.modal-header.without-logo {
    justify-content: center;
}

.modal-header.without-logo h2 {
    margin-left: 0;
}

/* Modal header name - always shown in modal */
.modal-header h2 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0;
}

/* Section labels in default text color */
.modal-section h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.0rem;
}
