/* question-framework.css (viewport‑only sizing) */

/* Base (mobile-first) */
.main-content {
    max-width: 95vw;
    padding: 2vh 3vw 0vh 9vw;
    flex-grow: 1;
    margin: 0;
}

.content-text p {
    font-family: 'Inter', sans-serif;
    font-size: 2.5vh;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.secondary-text {
    margin-top: 4vh !important;
    margin-bottom: 0 !important;
}

/* Categories Section */
.categories-section {
    max-width: 90vw;
    padding: 4vh 3vw 2vh 9vw;
    flex-grow: 1;
}

.category-item {
    background-color: #e8e8e8;
    padding: 2vh 3vw;
    margin-bottom: 1vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.category-item:hover {
    background-color: #ddd;
}
.category-title {
    font-family: 'FormaTextTest','Inter',sans-serif;
    font-size: 3.5vw;
    font-weight: 600;
    text-transform: uppercase;
}
.category-arrow {
    font-size: 5vw;
    font-weight: 600;
    color: #666;
}

/* Bottom Text */
.bottom-text {
    padding: 1vh 0 4vh 1vw;
}
.bottom-text p {
    max-width: 95vw;
    padding: 0 3vw 2vh 9vw;
    flex-grow: 1;
    font-family: 'Inter', sans-serif;
    font-size: 2.5vh;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Gray Section */
.gray-section {
    background-color: #F6F7D2;
    width: 100vw;
    padding: 8vh 1vw 2vh;
}
.gray-content {
    max-width: 95vw;
    margin: 0;
    padding: 0 8vw;
}
.gray-content .shape-row:last-child {
  margin-bottom: 0;
}
.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 2.2vh;
    color: #ff0000;
    font-weight: 400;
    display: block;
    margin-bottom: 2vh;
}

/* Explanation Text */
.explanation-text {
    margin-bottom: 6vh;
}
.explanation-text p {
    font-family: 'Inter', sans-serif;
    font-size: 3.5vw;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* Shape Grid */
.shape-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4vw;
    margin-bottom: 6vh;
}
.shape-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    filter: brightness(0) contrast(2);
}
.shape-svg {
    width: 10vw;
    height: 10vw;
    margin-bottom: 2vh;
}
.shape-number {
    font-family: 'Inter', sans-serif;
    font-size: 3vw;
    font-weight: 600;
    color: black;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(245, 245, 245, 0.8);
    backdrop-filter: blur(2px);
}
.modal-content {
    background-color: transparent;
    margin: 0;
    padding: 6vh 8vw;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6vh;
}
.modal-title {
    font-family: 'FormaTextTest','Inter',sans-serif;
    font-size: 4vw;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}
.close {
    font-size: 6vw;
    font-weight: 600;
    cursor: pointer;
    color: black;
}
.close:hover {
    opacity: 0.7;
}

/* Question Items */
.question-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6vh;
    gap: 10vw;
}
.question-number {
    font-family: 'FormaTextTest','Inter',sans-serif;
    font-size: 6vw;
    font-weight: 600;
    color: black;
    min-width: 1.5em;
    flex-shrink: 0;
}
.question-content {
    flex: 1;
}
.question-title {
    font-family: 'FormaTextTest','Inter',sans-serif;
    font-size: 6vw;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
    margin: 0 0 2vh 0;
}
.question-description {
    font-family: 'Inter', sans-serif;
    font-size: 3vw;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #333;
}

/* Modal Enhancement */
body.modal-open {
    overflow: hidden;
}
.blur-background {
    filter: blur(3px);
    transition: filter 0.3s ease;
}
.modal.show {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Responsive Tweaks */
/* Small phones */
@media (max-width: 600px) {
    .gray-content {
        padding: 0 8vw;
    }
    .section-label {
        font-size: 2vh;
    }
    .shape-row {
        gap: 8vw;
    }
    .modal-content {
        padding: 3vh 4vw;
    }
}

/* Tablets (up to 768px) */
@media (max-width: 768px) {
    .shape-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 6vw;
    }
    .category-item {
        padding: 2vh 4vw;
    }
    .modal-content {
        padding: 4vh 4vw;
    }
    .question-item {
        gap: 12vw;
    }
    .question-number {
        min-width: 1.2em;
    }
     .section-label {
        font-size: 2vh;
    }
}

/* Desktop and larger screens */
@media (min-width: 1200px) {
    .categories-section,
    .main-content,
    .gray-content {
        max-width: 50vw;
        margin: 0 0 0 9vw;
        padding: 0;
    }

    .bottom-text {
        max-width: 50vw;
        margin: 0 0 0 0;
        padding: 0;
    }
    .section-label {
        font-size: 2vh;
    }
    .shape-row {
        gap: 3vw;
    }
    .modal-content {
        padding: 8vh 12vw;
    }
    .question-item {
        gap: 4vw;
    }
}
