/* ============================================
   Co-Living Design Lab - Demo Override Stylesheet
   Helvetica font, lowercase headings, bio toggle
   ============================================ */

:root {
    --font-heading: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --demo-hero-green: #004f40;
}

.section-tag {
    display: none;
}

.section-title {
    text-transform: lowercase;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.section-header {
    margin-bottom: 48px;
}

/* ---------- Demo hero: solid logo green ---------- */
body.demo-page .hero {
    background: var(--demo-hero-green) !important;
}

body.demo-page .hero-overlay {
    display: none;
}

body.demo-page .hero-leaf {
    display: none !important;
}

body.demo-page .hero-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

body.demo-page .hero-logo {
    max-width: 480px;
    width: 88%;
}

body.demo-page .hero-desc {
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    font-size: clamp(1.05rem, 2.4vw, 1.28rem);
    line-height: 1.55;
}

body.demo-page .scroll-arrow {
    border-color: rgba(255, 255, 255, 0.55);
}

body.demo-page .navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

body.demo-page .navbar:not(.scrolled) .nav-link:hover {
    color: #fff;
}

body.demo-page .navbar:not(.scrolled) .hamburger,
body.demo-page .navbar:not(.scrolled) .hamburger::before,
body.demo-page .navbar:not(.scrolled) .hamburger::after {
    background: #fff;
}

body.demo-page .navbar:not(.scrolled) .lang-switch .lang-btn {
    color: rgba(255, 255, 255, 0.45);
}

body.demo-page .navbar:not(.scrolled) .lang-switch .lang-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

body.demo-page .navbar:not(.scrolled) .lang-switch .lang-divider {
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Nav Lowercase ---------- */
.nav-link {
    text-transform: lowercase;
}

/* ---------- About ---------- */
.about-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    text-align: center;
}

/* ---------- Section titles: logo green ---------- */
#about .section-title,
#ekip .section-title,
#team .section-title,
#faaliyet .section-title,
#activities .section-title,
#featured-work .section-title,
#publications .section-title,
#contact .section-title {
    color: var(--text-color);
}

body.demo-page .activity-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 28px 0 !important;
    transform: none !important;
}

body.demo-page .activity-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.demo-page .activity-card h3 {
    padding-right: 0;
}

/* ---------- Demo Team Grid: 3 columns, flat cells ---------- */
.team-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1140px;
    gap: 24px;
}

body.demo-page .team-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 24px 12px !important;
}

body.demo-page .team-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.team-card {
    padding: 24px 12px;
}

.team-avatar {
    width: 140px;
    height: 140px;
}

.team-card h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.45;
    color: var(--text-color);
}

.team-card h3 .team-academic-title {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    margin: 0;
    display: inline;
}

.team-card .team-affiliation {
    margin-top: 0;
}

/* ---------- Bio Toggle ---------- */
.bio-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--secondary);
    border-radius: 50%;
    background: none;
    cursor: pointer;
    margin-top: 8px;
    transition: all var(--transition);
    color: var(--primary);
}

.bio-toggle:hover {
    background: var(--secondary-light);
}

.bio-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.bio-toggle.open svg {
    transform: rotate(180deg);
}

/* Work detail: “geri” linki — ekip kartı bio-toggle ile aynı daire + ok dili */
.work-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

.work-back:hover {
    color: var(--primary-light);
}

.work-back:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 6px;
}

.work-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: 1.5px solid var(--secondary);
    border-radius: 50%;
    color: var(--primary);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.work-back:hover .work-back-icon {
    background: var(--secondary-light);
}

.work-back-icon svg {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
    transition: transform var(--transition);
}

.work-back-label {
    line-height: 1.3;
}

.team-bio {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0;
    padding: 0 4px;
}

.team-bio.open {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

/* ---------- Featured Work: 3-column tiles ---------- */
.featured-work-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1140px;
    margin: 0 auto 60px;
}

a.work-tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform var(--transition);
}

a.work-tile-link:hover {
    transform: translateY(-4px);
}

.work-tile {
    text-align: center;
}

.work-tile-visual {
    aspect-ratio: 5 / 4;
    width: 100%;
    border-radius: 20px;
    background: #1a2332;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
    overflow: hidden;
}

.work-tile-visual--photo {
    padding: 0;
    background: #111;
}

.work-tile-visual--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a.work-tile-link:hover .work-tile-visual {
    box-shadow: var(--shadow-md);
}

.work-tile h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.35;
    margin-bottom: 10px;
}

.work-tile-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

a.work-tile-link.work-tile-link--collapsed {
    display: none !important;
}

.featured-work-more-wrap {
    text-align: center;
    margin: -12px auto 56px;
    max-width: 1140px;
}

.featured-work-more {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--secondary);
    padding: 12px 32px;
    border-radius: 999px;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.featured-work-more:hover {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.featured-work-more:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
}

/* ---------- Work detail: project contributors (byline) ---------- */
.work-contributors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin: -8px 0 28px;
}

.work-contributor {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.work-contributor-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.work-contributor-link:hover .work-contributor-name,
.work-contributor-link:focus-visible .work-contributor-name {
    color: var(--primary);
}

.work-contributor-link:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 4px;
}

.work-contributor-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(45, 95, 62, 0.12);
    border: 2px solid rgba(168, 213, 186, 0.45);
}

.work-contributor-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: 0.01em;
    transition: color var(--transition);
}

.work-contributors-sep {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    user-select: none;
}

/* Work detail: embedded video (YouTube) */
.work-video-wrap {
    position: relative;
    width: 100%;
    margin: 32px 0 24px;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: #111;
}

.work-video-wrap .work-video-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.work-video-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.5;
}

.work-tile-placeholder .work-tile-visual {
    background: linear-gradient(145deg, #2a3544 0%, #1a2332 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-tile-placeholder .work-tile-visual span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- Publications: plain list (no card chrome) ---------- */
body.demo-page #publications .container {
    max-width: 1400px;
    padding-left: clamp(16px, 3vw, 36px);
    padding-right: clamp(16px, 3vw, 36px);
}

.publications-list {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 56px;
    padding: 0;
    box-sizing: border-box;
}

.pub-list-row {
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pub-list-row:first-child {
    padding-top: 8px;
}

.pub-list-row:last-child {
    border-bottom: none;
    padding-bottom: 8px;
}

.pub-list-row h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.45;
    margin-bottom: 8px;
    font-style: normal;
}

.pub-list-row .project-meta {
    margin-bottom: 0;
}

.pub-list-row .project-meta a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.pub-list-row .project-meta a:hover {
    color: var(--primary-light);
}

/* ---------- Contact Section ---------- */
.contact-section {
    padding: 80px 0;
    --contact-copy-font-size: 1.05rem;
    --contact-copy-line-height: 1.65;
}

.contact-intro,
.contact-info-item a {
    font-family: var(--font-body);
    font-size: var(--contact-copy-font-size);
    line-height: var(--contact-copy-line-height);
    font-weight: 400;
}

.contact-intro {
    color: var(--text-color);
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-color);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: var(--contact-copy-font-size);
    line-height: var(--contact-copy-line-height);
}

.contact-info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.22em;
}

.contact-info-item a {
    color: var(--primary);
}

.contact-info {
    text-align: center;
}

/* ---------- Footer: address under logo ---------- */
.footer-address {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.62);
    margin: 20px 0 0;
    max-width: 360px;
}

/* ---------- Subtle Demo Nav Link ---------- */
.nav-demo-link {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.nav-demo-link:hover {
    opacity: 1;
}

/* ---------- Lang Switch (static links) ---------- */
.lang-switch .lang-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    cursor: pointer;
}

.lang-switch .lang-btn.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .lang-switch .lang-btn {
    color: var(--text-muted);
}

.navbar.scrolled .lang-switch .lang-btn.active {
    color: var(--primary);
    background: var(--secondary-light);
}

/* ---------- Responsive overrides ---------- */
@media (max-width: 1024px) {
    .featured-work-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobil menü: şeffaf navbar renkleri çekmece içinde okunaklı olsun */
    body.demo-page .navbar:not(.scrolled) .nav-menu .nav-link {
        color: var(--text-color);
    }

    body.demo-page .navbar:not(.scrolled) .nav-menu .nav-link:hover {
        color: var(--primary);
    }

    body.demo-page .navbar:not(.scrolled) .nav-menu .lang-switch .lang-btn {
        color: var(--text-muted);
    }

    body.demo-page .navbar:not(.scrolled) .nav-menu .lang-switch .lang-btn.active {
        color: var(--primary);
        background: var(--secondary-light);
    }

    body.demo-page .navbar:not(.scrolled) .nav-menu .lang-switch .lang-divider {
        color: rgba(0, 0, 0, 0.22);
    }

    .nav-menu {
        z-index: 1002;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-section {
        padding: 64px 0;
    }

    .featured-work-tiles {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
