/* ==========================================================================
   ElitePOV Custom Model Post Profile Page Layout Stylesheet
   ========================================================================== */

.ep-model-profile-wrapper {
    background-color: #0a0a0a;
    min-height: 80vh;
    padding: 60px 0;
    width: 100%;
    box-sizing: border-box;
}

/* Master 30/70 Asymmetric Grid System Wrapper (Desktop Baseline) */
.ep-model-profile-container {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 48px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    align-items: flex-start;
}

/* Left Profile Frame Block (30%) */
.ep-model-profile-left-col {
    width: 100%;
}

.ep-model-portrait-card {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #141414;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid #1f1f1f;
}

/* Enforce Portrait aspect constraints */
.ep-model-portrait-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ep-model-portrait-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444444;
    font-weight: 500;
}

/* Right Profile Frame Details Block (70%) */
.ep-model-profile-right-col {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Model Title Header Typographics */
.ep-model-name-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Biography Subnode Core Section Markup Elements */
.ep-model-biography-block {
    margin: 0 0 30px 0;
}

.ep-model-bio-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--primary-text-color);
    margin: 0;
    padding: 0;
}

/* Metadata Parameters Spec Grid Block */
.ep-model-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin: 30px 0 40px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid #1f1f1f;
}

/* Stacked Column Architecture */
.ep-model-spec-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* Label: Small, Muted grey, sentence/capitalize case */
.ep-spec-label {
    color: #888888;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: capitalize;
}

/* Value: Bright white, clean vertical look, bold and capitalized */
.ep-spec-value {
    color: var(--primary-text-color);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* ==========================================================================
   Mobile Responsive Layout Strategy Overrides
   ========================================================================== */

/* Tablet Optimization Frame */
@media (max-width: 960px) {
    .ep-model-profile-container {
        gap: 32px;
    }
    
    .ep-model-name-heading {
        font-size: 2rem;
    }
}


.ep-models-block-container {
    box-sizing: border-box !important;
    display: block;
    margin: 40px auto !important;
    max-width: 1200px !important;
    padding: 0 20px !important;
    width: 100% !important;
    color: var(--primary-text-color);
}

/* Phone Full-Width Stack Fluidity Overrides */
@media (max-width: 768px) {
    .ep-model-profile-wrapper {
        padding: 0 0 40px 0; /* Picture touches browser header bar directly */
    }

    .ep-model-profile-container {
        grid-template-columns: 1fr; /* Drop 30/70 rule to single column grid stack */
        gap: 24px;
        padding: 0; /* Pull content to exact edges of device display boundaries */
    }

    .ep-model-profile-left-col {
        max-width: 100%;
        margin: 0;
    }

    .ep-model-portrait-card {
        border-radius: 0; /* Strip rounded edges so portrait fits edge-to-edge flawlessly */
        border-left: none;
        border-right: none;
        border-top: none;
    }

    /* Indent text parameters nicely on mobile panels */
    .ep-model-profile-right-col {
        padding: 0 20px; 
        box-sizing: border-box;
    }

    .ep-model-name-heading {
        text-align: left;
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .ep-model-specs-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 grid items per row on mobile */
        gap: 20px;
        padding-bottom: 24px;
        border-bottom: 1px solid #1f1f1f;
    }
}