/* Trachemy Detail Page Styles */

body {
    background-color: #A999D4;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #000;
}

.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.trachemy-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 0;
    background-color: #A999D4;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    position: absolute;
    left: 0;
    top: 24px;
}

.back-button:hover {
    opacity: 0.7;
}

.trachemy-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trachemy-title-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trachemy-header-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.trachemy-title {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    color: #FFD93D;
}

/* Main Content */
.trachemy-main {
    padding: 20px 0 40px 0;
}

.trachemy-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 20px 0 12px 0;
    padding: 0;
}

/* First section title - no top margin */
.section-title:first-of-type {
    margin-top: 0;
}

/* Accordion Items */
.accordion-item {
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #A999D4;
}

/* Toggle Switch */
.toggle-switch {
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch-track {
    width: 100%;
    height: 100%;
    background-color: rgba(143, 137, 196, 0.3);
    border-radius: 12px;
    position: relative;
    transition: background-color 0.3s ease;
}

.accordion-item.expanded .toggle-switch-track {
    background-color: #8F89C4;
}

.toggle-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.accordion-item.expanded .toggle-switch-knob {
    transform: translateX(24px);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    padding: 0 25px;
}

.accordion-item.expanded .accordion-content {
    opacity: 1;
    padding: 0 25px 25px 25px;
}

/* Content Styles */
.content-description {
    color: #A999D4;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.accordion-list {
    list-style-position: outside;
    padding-left: 20px;
    margin: 15px 0;
    color: #A999D4;
}

.accordion-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 15px;
    padding-left: 8px;
}

ol.accordion-list {
    list-style: decimal;
}

ul.accordion-list {
    list-style: disc;
}

/* Tables */
.ideas-table-container,
.pain-points-table,
.gtm-result-table {
    margin: 20px 0;
}

.table-note {
    color: #A999D4;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: rgba(255, 255, 255, 0.05);
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid rgba(169, 153, 212, 0.3);
    color: #A999D4;
    font-size: 14px;
}

th {
    background-color: rgba(169, 153, 212, 0.2);
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: rgba(169, 153, 212, 0.05);
}

/* Table bullet points indentation */
td ul {
    margin: 8px 0;
    padding-left: 20px;
    list-style-position: outside;
}

td ul li {
    margin-bottom: 4px;
}

/* Tabs */
.problem-solution-tabs,
.gtm-tabs {
    margin: 20px 0;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.tab-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #A999D4;
    background-color: transparent;
    color: #A999D4;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: rgba(169, 153, 212, 0.2);
}

.tab-button.active {
    background-color: #A999D4;
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-subtitle {
    color: #FFD93D;
    font-size: 18px;
    margin-bottom: 15px;
}

.tab-description {
    color: #A999D4;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Boxes */
.conclusion-box,
.sub-mission-box,
.problem-statements-box {
    background-color: rgba(169, 153, 212, 0.1);
    border: 1px solid rgba(169, 153, 212, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.box-title {
    color: #FFD93D;
    font-size: 16px;
    margin-bottom: 10px;
}

.conclusion-box p,
.sub-mission-box p,
.problem-statements-box p {
    color: #A999D4;
    margin: 0;
    line-height: 1.6;
}

/* Interview Questions */
.interview-questions {
    margin: 20px 0;
}

.question-item {
    margin-bottom: 20px;
}

.question-title {
    color: #FFD93D;
    font-weight: 600;
    margin-bottom: 8px;
}

.question-answer {
    color: #A999D4;
    margin: 0;
    padding-left: 15px;
}

/* Technical Content */
.technical-content {
    margin: 20px 0;
}

.technical-table {
    margin-bottom: 20px;
}

.frameworks-title {
    color: #FFD93D;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Images */
.mvp-images,
.feature-images {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.mvp-image-item,
.feature-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    max-width: 100%;
}

.mvp-image-item img,
.feature-image-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Ongoing pre-seed program feature - equal height images */
.accordion-item .feature-images {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 20px 0;
}

.accordion-item .feature-images .feature-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.accordion-item .feature-images img {
    max-width: 100%;
    height: 220px;
    width: auto;
    object-fit: contain;
    border: none;
}

/* AI Idea generator - larger images */
.accordion-item.ai-generator-section .feature-images {
    gap: 12px;
}

.accordion-item.ai-generator-section .feature-images img {
    height: 350px;
    max-width: 100%;
}

.image-caption {
    color: #A999D4;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* Cinema icon link */
.video-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

.cinema-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.video-link:hover .cinema-icon {
    transform: scale(1.1);
}

/* GTM Images */
.gtm-image-wrapper {
    margin: 20px 0;
    text-align: center;
}

.gtm-image-container {
    display: inline-block;
    text-align: center;
}

.gtm-image-container img {
    max-width: 60%;
    height: auto;
    border-radius: 12px;
}

.image-title {
    color: #A999D4;
    font-size: 14px;
    text-align: center;
    margin-bottom: 10px;
}

.gtm-images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

.gtm-image-item {
    text-align: center;
}

.gtm-image-item img {
    max-width: 60%;
    height: auto;
    border-radius: 12px;
}

/* GTM3 specific styling */
.gtm3-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

.gtm3-wrapper .gtm-image-item {
    flex: 1;
}

.gtm3-wrapper .gtm-image-item:first-child {
    flex: 1.5;
}

.gtm3-wrapper .gtm-image-item img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.launching-label {
    text-align: center;
    color: #A999D4;
    font-size: 14px;
    margin-top: 10px;
}

/* Results Content */
.results-content {
    margin: 20px 0;
}

.results-boxes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.results-box {
    flex: 1;
    min-width: 0;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(169, 153, 212, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.results-box-header {
    background-color: rgba(169, 153, 212, 0.2);
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #A999D4;
    border-bottom: 1px solid rgba(169, 153, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.results-box-content {
    padding: 10px;
}

.results-stat {
    font-size: 18px;
    font-weight: bold;
    color: #FFD93D;
    text-align: center;
    margin-bottom: 10px;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 6px;
    margin: 10px 0;
    justify-items: center;
}

.social-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.results-note {
    font-size: 11px;
    color: #A999D4;
    text-align: center;
    margin-top: 4px;
}

.results-list {
    list-style: disc;
    padding-left: 15px;
    margin: 0;
}

.results-list li {
    font-size: 10px;
    color: #A999D4;
    line-height: 1.3;
    margin-bottom: 4px;
}

.results-image-container {
    margin: 20px 0;
    text-align: center;
}

.results-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Feature Details */
.feature-details {
    margin-top: 20px;
}

.content-subtitle {
    color: #FFD93D;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.feature-details p {
    color: #A999D4;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Metrics and Goals */
.metric {
    display: block;
    color: rgba(169, 153, 212, 0.8);
    font-size: 14px;
    margin-left: 20px;
    margin-bottom: 0;
}

.goal {
    display: block;
    color: rgba(169, 153, 212, 0.8);
    font-size: 14px;
    margin-left: 20px;
    margin-top: -4px;
}

/* Final Conclusion */
.final-conclusion {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(169, 153, 212, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .trachemy-title {
        font-size: 36px;
    }
    
    .trachemy-header-logo {
        width: 40px;
        height: 40px;
    }
    
    .mvp-images,
    .feature-images {
        flex-direction: column;
    }
    
    .mvp-image-item,
    .feature-image-item {
        max-width: 100%;
    }
    
    .gtm-images-row {
        flex-direction: column;
    }
    
    .gtm-images-row img {
        max-width: 100%;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 8px;
    }
}

