/* Custom Styles specifically for Go-IKN Case Study */

/* --- Hero Section --- */
.go-ikn-hero {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0 0;
}

.hero-title {
    color: var(--primary-orange);
    font-family: var(--font-display);
    font-size: 32px;
    margin: 0;
    font-weight: 700;
}

.hero-image-placeholder {
    width: 100%;
    min-height: 250px;
    border-radius: 24px;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 16/9;
}

/* --- Overview Section --- */
.transparent-container {
    border: none;
    background: transparent;
    padding: 0;
}

.project-description-top {
    margin-top: 16px;
}

.highlight-text {
    color: var(--primary-orange);
}

/* --- Empathize Section --- */
.research-methodology-card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.research-methodology-text {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

.research-objective-list {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.objective-list-item {
    color: var(--text-light);
    font-size: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.objective-bullet {
    color: var(--primary-orange);
    margin-top: 4px;
}

.insight-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 64px;
}

.insight-card {
    background: var(--bg-dark);
    border: 1px solid var(--strike-border);
    border-radius: 16px;
    padding: 24px;
}

.insight-quote {
    color: var(--text-muted);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.5;
}

.insight-highlight {
    color: var(--primary-orange);
    font-weight: 600;
}

.insight-author {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
}

/* --- User Journey Map --- */
.journey-map-container {
    width: 100%;
    border-radius: 24px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    overflow-x: auto;
    padding: 32px;
}

.journey-content-wrapper {
    min-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.journey-grid-row {
    display: grid;
    grid-template-columns: 120px repeat(5, 1fr);
    gap: 16px;
}

.journey-grid-row-center {
    align-items: center;
}

.journey-grid-row-relative {
    position: relative;
}

.journey-row-label {
    font-weight: 700;
    color: var(--strike-orange);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    height: 100%;
    text-align: center;
    border-left: 2px solid var(--strike-orange);
    padding-right: 12px;
}

.journey-stage-cell {
    background: var(--primary-orange);
    color: var(--text-dark);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}

.journey-action-cell {
    background: var(--surface-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--strike-border);
    font-size: 14px;
    color: var(--text-light);
}

.journey-thought-cell {
    background: var(--surface-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--strike-border);
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.journey-emotion-line {
    position: absolute;
    top: 50%;
    left: 180px;
    right: 100px;
    height: 2px;
    background-color: var(--border-light);
    z-index: 1;
}

.journey-emotion-point {
    text-align: center;
    z-index: 2;
}

.journey-emotion-emoji {
    font-size: 40px;
    background: var(--bg-dark);
    padding: 8px;
    border-radius: 50%;
}

.journey-emotion-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-neg-40 {
    margin-top: -40px;
}

.journey-pain-cell {
    background: var(--ripple-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--strike-orange);
    font-size: 14px;
    color: var(--text-light);
}

.journey-opportunity-cell {
    background: rgba(46, 204, 113, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2ecc71;
    font-size: 14px;
    color: var(--text-light);
}

.journey-list {
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Sub-section Headers & Text --- */
.section-subtitle-muted {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
}

.grid-mb-48 {
    margin-bottom: 48px;
}

.placeholder-box {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-box-large {
    height: 400px;
    margin-bottom: 48px;
}

.placeholder-text {
    color: var(--text-muted);
}

/* --- High-Fidelity MVP Features --- */
.mvp-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 64px;
}

.mvp-title {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.mvp-desc {
    color: var(--text-muted);
    font-size: 16px;
}

.hifi-placeholder {
    width: 100%;
    padding: 40px;
    border-radius: 16px;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: center;
    min-height: 400px;
    margin-bottom: 64px;
}

/* --- Usability Testing Table --- */
.table-container-style {
    overflow-x: auto;
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    margin-bottom: 40px;
}

.usability-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: left;
    color: var(--text-light);
}

.table-header-row {
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.02);
}

.table-header-cell {
    padding: 16px 24px;
    font-weight: 600;
}

.table-col-30 {
    width: 30%;
}

.table-body-row {
    border-bottom: 1px solid var(--border-light);
}

.table-cell {
    padding: 16px 24px;
}

.table-cell-muted {
    color: var(--text-muted);
    font-size: 14px;
}

.table-cell-no-border {
    border-bottom: none;
}

/* --- Iteration & Output --- */
.iteration-title {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 12px;
}

.iteration-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 24px;
}

.iteration-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.output-wrapper {
    margin-top: 32px;
}

.figma-iframe-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.figma-iframe {
    border: none;
    width: 100%;
    height: 600px;
}

.go-ikn-feature-block {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.table-container::-webkit-scrollbar {
    height: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

/* --- Analyze & Synthesize Demographics Table --- */
.demographics-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--surface-card);
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 48px;
    border: 1px solid var(--border-light);
}

.demographics-grid {
    display: grid;
    grid-template-columns: 80px repeat(5, 1fr) repeat(2, 1.5fr);
    gap: 8px;
    min-width: 900px;
    font-family: 'DM Sans', sans-serif;
}

.demo-header-super {
    background: #287d55;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    font-size: 16px;
}

.demo-header-sub {
    background: #aed5fc;
    color: #2b70ab;
    font-weight: 600;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-label {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 6px;
}

.demo-cell {
    color: #1a1a1a;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Row colors */
.bg-pink {
    background: #ffccdf;
}

.bg-blue {
    background: #68ccf5;
    color: #1a1a1a;
}

.bg-green {
    background: #cdf286;
}

.bg-gray {
    background: #e2e2e2;
}

.bg-yellow {
    background: #fdf294;
}

/* --- Affinity Diagram / User Preferences --- */
.affinity-container {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 48px;
    font-family: 'DM Sans', sans-serif;
}

.affinity-main-title {
    background: var(--bg-dark);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-block;
}

.affinity-category-group {
    padding: 32px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.affinity-category-group:last-child {
    border-bottom: none;
}

.affinity-category-title {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.affinity-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

.affinity-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.affinity-sub-title {
    color: var(--primary-orange);
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.affinity-helper-text {
    font-size: 14px;
    color: #9a9a9a;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 12px;
}

.affinity-question-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 12px;
}

.affinity-legend {
    margin: 40px 0 32px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-title {
    color: var(--primary-orange);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.legend-item .affinity-user-color {
    /* Override absolute positioning for the legend */
    position: static;
    margin-top: 0;
}

.affinity-list {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.affinity-list li {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
    padding-left: 28px;
    display: flex;
    align-items: flex-start;
}

.affinity-user-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 6px;
    flex-shrink: 0;
}

.color-pink {
    background-color: #ffccdf;
}

.color-blue {
    background-color: #68ccf5;
}

.color-green {
    background-color: #cdf286;
}

.color-gray {
    background-color: #e2e2e2;
}

.color-yellow {
    background-color: #fdf294;
}

.user-label {
    font-weight: 700;
    font-size: 14px;
}

/* Row colors */
.bg-pink {
    background: #ffccdf;
}

.bg-blue {
    background: #68ccf5;
    color: #1a1a1a;
}

.bg-green {
    background: #237A59;
}

.bg-gray {
    background: #D4AF37;
}

.bg-yellow {
    background: #fdf294;
}

.affinity-border-dark {
    border-top-color: #111;
}

.affinity-bg-dark {
    background: #111;
}

.affinity-question-text {
    color: #2b70ab;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Mobile Responsiveness for Go-IKN */
@media (max-width: 768px) {
    .affinity-columns {
        flex-direction: column;
        gap: 16px;
    }

    .affinity-col {
        width: 100%;
    }

    /* 1. Enforce 16px horizontal padding for case content */
    .case-content {
        padding-left: 48px !important;
        padding-right: 48px !important;
        width: 100% !important;
    }

    .go-ikn-hero {
        padding: var(--nav-offset) 16px 24px;
        height: auto;
        min-height: auto;
        align-items: flex-start;
    }



    /* 3. Stack Personas vertically */
    .persona-container,
    .two-column-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
        width: 100%;
    }

    /* 4. Fix Hero Image Placeholder bounds */
    .hero-right,
    .hero-left {
        width: 100% !important;
        max-width: 100vw;
    }

    /* 5. User Journey Map Responsiveness */
    .journey-map-container {
        padding: 16px 0px;
        border-radius: 16px;
        -webkit-overflow-scrolling: touch;
        /* Smooth horizontal scroll */
    }

    .journey-content-wrapper {
        min-width: 800px;
        /* Reduced from 1000px to fit mobile screens better while scrolling */
        gap: 24px;
    }

    /* Make the row labels sticky so users know what they are looking at while scrolling */
    .journey-row-label {
        position: sticky;
        left: 0;
        z-index: 10;
        background: var(--bg-dark);
        font-size: 13px;
        padding-right: 8px;
    }

    .journey-grid-row {
        grid-template-columns: 80px repeat(5, 1fr);
        gap: 12px;
    }

    .journey-stage-cell,
    .journey-action-cell,
    .journey-thought-cell,
    .journey-pain-cell,
    .journey-opportunity-cell {
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* Adjust emotion lines and points for smaller grid */
    .journey-emotion-line {
        left: 100px;
        right: 40px;
    }

    .journey-emotion-emoji {
        font-size: 32px;
        padding: 6px;
    }

    .journey-emotion-label {
        font-size: 11px;
    }

    .mt-40 {
        margin-top: 24px;
    }

    .mt-neg-40 {
        margin-top: -24px;
    }

    .mt-20 {
        margin-top: 12px;
    }
}