/** *****************************************************************************
LAYOUT STYLESHEET
레이아웃 스타일시트
***************************************************************************** */

/* #region BASE & LAYOUT */
.container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 0;
}

.two-column-layout {
    display: grid;
    gap: 40px;
    margin-top: 60px;
}

.layout-3-7 { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.layout-8-2 { grid-template-columns: minmax(0, 8fr) minmax(0, 2fr); }
.layout-5-5 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* #endregion */

/* #region TYPOGRAPHY & UTILITIES */
.main-title {
    margin-bottom: 70px;
    color: var(--color-main);
    font-size: 32px;
    font-weight: bold;
}

.section-title {
    margin-bottom: 20px;
    color: var(--color-main);
    font-size: 18px;
    font-weight: bold;
}

.text-sub {
    margin-left: 2px;
    color: var(--color-sub);
}

.text-accent {
    color: var(--color-accent);
}

/* For HTML Inline Style Replacements (Spacing & Visibility) */
.visually-hidden { visibility: hidden !important; }
.text-center { text-align: center !important; }
.w-250 { max-width: 250px !important; }
.mt-10 { margin-top: 10px !important; }
.mt-15 { margin-top: 15px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-60 { margin-top: 60px !important; }
.mt-100 { margin-top: 100px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-40 { margin-bottom: 40px !important; }
.ml-20 { margin-left: 20px !important; }
/* #endregion */

/* #region COMPONENTS */
.terminal-box {
    margin-bottom: 20px;
    background-color: var(--color-terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333333;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 15px;
    padding: 2px 10px;
    background-color: var(--color-terminal-bg);
    border-bottom: 2px solid var(--color-accent);
}

.terminal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-icon {
    width: 20px;
    height:20px;
    object-fit: contain;
}

.terminal-title {
    color: var(--color-accent);
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.terminal-close {
    color: var(--color-main);
    font-size: 20px;
    font-weight: normal;
    line-height: 1;
}

.terminal-content {
    padding: 20px;
    color: var(--color-main);
}

.terminal-content p {
    margin: 0;
}

.terminal-info-grid {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    row-gap: 3px;
    column-gap: 1ch;
}

.info-grid {
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr);
    column-gap: 1ch;
    row-gap: 10px;
}

.profile-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #1E1E1E;
    cursor: pointer;
    user-select: none;
}

.design-image-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    background-color: #1E1E1E;
    cursor: pointer;
    user-select: none;
}

.content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: pointer;
    user-select: none;
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}

.color-palette-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.color-box-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.color-box {
    width: 100%;
    height: 20px;
}

.color-info {
    color: var(--color-main);
}
/* #endregion */

/* #region MEDIA & MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.9);
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-main);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 500px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    .section-title {
        margin-top: 0;
    }
}
/* #endregion */
