/* 0BS Ventures - Manila Folder Theme */

/* Font Face */
@font-face {
    font-family: 'Courier Primal';
    src: url('../fonts/CourierPrimal-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Courier Primal';
    src: url('../fonts/CourierPrimal-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Variables */
:root {
    --manila-active: #F2E2C4;
    --manila-inactive: #E5D4B3;
    --manila-hover: #EBD9B8;
    --page-bg: #FAF6F0;
    --text-color: #3D3225;
    --border-color: #C4B8A8;
    --shadow-color: rgba(61, 50, 37, 0.15);

    --font-main: 'Courier Primal';
    --tab-radius: 12px;
    --content-padding: 40px;
}

/* Base Styles */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--page-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Main Container */
.site-container {
    width: 100%;
    min-width: 580px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    position: relative;
    z-index: 10;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 160px;
    padding: 0 24px;
    background-color: var(--manila-inactive);
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 20px;
    font-weight: normal;
    border-radius: var(--tab-radius) var(--tab-radius) 0 0;
    border: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    position: relative;
    transition: background-color 0.15s ease;
    box-shadow: 0 -2px 4px var(--shadow-color);
    white-space: nowrap;
}

.tab:hover {
    background-color: var(--manila-hover);
}

.tab.active {
    background-color: var(--manila-active);
    font-weight: bold;
    z-index: 20;
    border-bottom: 2px solid var(--manila-active);
    box-shadow: 0 -4px 8px var(--shadow-color);
}

/* Logo Tab (first tab) */
.tab.logo-tab {
    font-weight: bold;
}

/* Content Area */
.content-area {
    flex: 1;
    background-color: var(--manila-active);
    border: 2px solid var(--border-color);
    border-radius: 0 0 var(--tab-radius) var(--tab-radius);
    padding: var(--content-padding);
    position: relative;
    z-index: 5;
    margin-top: -2px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Barba.js transition wrapper */
.barba-container {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.barba-container.fade-out {
    opacity: 0;
}

.barba-container.fade-in {
    opacity: 0;
}

/* Page Content Styles */
.page-content {
    max-width: 800px;
}

.page-title {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 24px;
    color: var(--text-color);
}

.page-subtitle {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: bold;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.page-text {
    font-family: var(--font-main);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.7;
}

/* Landing Page Specific */
.landing-hero {
    text-align: left;
    padding: 20px 0;
}

.landing-tagline {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 24px;
}

.landing-description {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.landing-cta {
    font-size: 14px;
    font-weight: bold;
}

.landing-cta a {
    color: var(--text-color);
    text-decoration: underline;
}

/* Thesis Page Specific */
.thesis-section {
    margin-bottom: 32px;
}

.thesis-list {
    list-style: none;
    padding: 0;
}

.thesis-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.thesis-list li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--text-color);
    font-weight: bold;
}

/* Team Page Specific */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 24px;
}

.gp-card {
    background-color: var(--page-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

.gp-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    background-color: var(--manila-inactive);
    border: 2px solid var(--border-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--border-color);
}

.gp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.gp-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.gp-title {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.gp-bio {
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.contact-email {
    font-weight: bold;
}

.contact-email a {
    color: var(--text-color);
}

/* Responsive - Vertical tabs on left */
@media (max-width: 768px) {
    .site-container {
        padding: 12px;
        min-width: auto;
        flex-direction: row;
    }

    .tab-nav {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
        align-self: stretch;
    }

    .tab {
        writing-mode: vertical-lr;
        text-orientation: mixed;
        transform: rotate(180deg);
        flex: 1;
        min-height: 0;
        height: auto;
        width: 44px;
        min-width: auto;
        padding: 12px 0;
        font-size: 14px;
        justify-content: center;
        border-radius: 0;
        border: 2px solid var(--border-color);
        box-shadow: none;
    }

    /* After 180° rotation: pre-rotation left = visual right (facing content) */
    .tab.active {
        border-left: 2px solid var(--manila-active);
        box-shadow: none;
    }

    .tab.logo-tab {
        font-weight: bold;
    }

    /* After rotation: pre-rotation BR = visual top-left (outer folder corner) */
    .tab:first-child {
        border-radius: 0 0 var(--tab-radius) 0;
    }

    /* After rotation: pre-rotation TR = visual bottom-left (outer folder corner) */
    .tab:last-child {
        border-radius: 0 var(--tab-radius) 0 0;
    }

    /* After rotation: pre-rotation top = visual bottom, remove to avoid double borders */
    .tab:not(:last-child) {
        border-top: none;
    }

    .content-area {
        flex: 1;
        padding: 20px;
        border-radius: 0 var(--tab-radius) var(--tab-radius) 0;
        margin-top: 0;
        margin-left: 0;
        box-shadow: none;
        border-left: none;
    }

    /* Remove the right border (visual, faces content) from all tabs - content edge provides this */
    .tab {
        border-left: none;
    }

    .tab.active {
        border-left: none;
    }

    .page-title {
        font-size: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .gp-card {
        padding: 16px;
    }

    .gp-photo {
        width: 80px;
        height: 80px;
    }
}
