/* Modal popup styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    width: 80%;
    max-width: 1000px;
    height: auto;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    overflow: auto;
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    display: flex;
    flex: 1;
    gap: 30px;
}

.modal-text {
    flex: 2;
}

.modal-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 0;
    color: var(--text-color);
}

.modal-recommendations {
    background-color: #f0f7fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-recommendations h3 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
}

.modal-recommendations p {
    margin: 0;
    color: var(--text-color);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

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

/* Modal full description styles */
.modal-full-description {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.modal-full-description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.modal-full-description p:last-child {
    margin-bottom: 0;
}

/* App recommendation styles */
.app-recommendations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.app-recommendation {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.app-image {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.app-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9f5f6;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5em;
    border: 1px solid var(--border-color);
}

.app-recommendation p {
    text-align: center;
    font-size: 0.9em;
    line-height: 1.3;
    font-weight: 500;
} 