﻿/* ══════════════════════════════════════════════════
   STLYES.CSS — Gallardo E-Katalog — ANA SAYFA
   PC: Sol kart paneli | Sağ logo/alt-proje paneli
   Mobil: Üstte kart grid | Altta logo/alt-proje paneli

   NOT: Galeri/slider/fiyat/konum gibi DETAY stilleri burada YOK,
   onlar catalog-detail.css içinde (CatalogDetay.aspx).
   ══════════════════════════════════════════════════ */

:root {
    --brand: #0b326d;
    --brand2: #06203a;
    --grad: linear-gradient(135deg,#0b326d,#06203a);
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface2: #f0f4f9;
    --border: rgba(0,0,0,.07);
    --border-solid: #dde5f0;
    --shadow-sm: 0 2px 8px rgba(11,50,109,.07);
    --shadow: 0 8px 24px rgba(11,50,109,.11);
    --shadow-card: 0 4px 24px rgba(11,50,109,.09);
    --text: #1a1a1a;
    --text-strong: #0d1a2d;
    --muted: #6c757d;
    --muted2: #495057;
    --accent: #0b326d;
    --accent-soft: rgba(11,50,109,.07);
    --r: 16px;
    --r-sm: 10px;
    --r-xs: 6px;
    --header-h: 58px;
    --left-w: 390px; /* Sol kart paneli genişliği */
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--bg);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

    body > form#form1 {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
}

    button:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

/* ══════════════════════════════
   HEADER
   ══════════════════════════════ */
.header {
    flex-shrink: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b326d !important;
    background-color: #0b326d !important;
    box-shadow: 0 3px 16px rgba(11,50,109,.35);
    position: relative;
    z-index: 100;
}

    .header h1 {
        font-weight: 700;
        font-size: clamp(.85rem,2vw,1.2rem);
        color: #ffffff !important;
        letter-spacing: clamp(.14rem,.9vw,.42rem);
    }

/* ══════════════════════════════════════════════════
   ANA LAYOUT: PC'de yan yana, mobilde üst-alt
   ══════════════════════════════════════════════════ */
.catalog-layout {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
    overflow: hidden;
}

/* ══════════════════════════════
   SOL PANEL — Proje kartları
   ══════════════════════════════ */
.catalog-left {
    width: var(--left-w);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--surface);
    border-right: 1px solid var(--border-solid);
    padding: 1.1rem 1rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-solid) transparent;
}

    .catalog-left::-webkit-scrollbar {
        width: 4px;
    }

    .catalog-left::-webkit-scrollbar-thumb {
        background: var(--border-solid);
        border-radius: 4px;
    }

/* Kart grid — sol panelde 2 sütun */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

/* ════════════════════════════════════════
   PROJE KARTI
   ════════════════════════════════════════ */
.sc-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--r);
    overflow: hidden;
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s cubic-bezier(.4,0,.2,1), border-color .2s;
    -webkit-tap-highlight-color: transparent;
    contain: layout style;
}

    .sc-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 36px rgba(0,0,0,.12);
    }

    .sc-card:active {
        transform: translateY(-3px) scale(.99);
    }

    .sc-card.active {
        border-color: var(--brand);
        box-shadow: 0 0 0 2px var(--brand), var(--shadow);
        transform: translateY(-4px);
    }

.sc-media {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg,#070e1f,#0c1a34);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .sc-media::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(90,175,240,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(90,175,240,.04) 1px,transparent 1px);
        background-size: 20px 20px;
        pointer-events: none;
    }

.sc-media-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px 18px;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.sc-media-placeholder {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(90,175,240,.10);
    position: relative;
    z-index: 1;
}

.sc-media .badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: .28rem .65rem;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    font-size: .58rem;
    font-weight: 600;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .4px;
    z-index: 2;
}

.sc-media .card-num {
    position: absolute;
    bottom: 4px;
    right: 6px;
    color: rgba(255,255,255,.18);
    font-size: .50rem;
    font-weight: 600;
    z-index: 2;
}

.sc-body {
    flex: 1;
    padding: .6rem .75rem .55rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    background: var(--surface);
}

    .sc-body h3 {
        font-size: .76rem;
        font-weight: 700;
        color: var(--text-strong);
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .sc-body p {
        display: none;
    }

.sc-footer {
    margin-top: .3rem;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: .30rem;
    color: var(--brand);
    background: none;
    border: none;
    font-size: .70rem;
    font-weight: 600;
    padding: 0;
    transition: gap .22s ease;
}

    .sc-link:hover {
        gap: .52rem;
    }

    .sc-link i {
        font-size: .62rem;
    }

/* ══════════════════════════════
   SAĞ PANEL — Logo / Alt-proje seçimi
   ══════════════════════════════ */
.catalog-right {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

/* ── Welcome: 3 sütun ── */
.catalog-welcome {
    display: flex;
    height: 100%;
    align-items: stretch;
}

.cw-left {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem 1.75rem 2rem;
    background: var(--surface);
    border-right: 1px solid var(--border-solid);
}

.cw-address {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.cw-addr-row {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .78rem;
    color: var(--muted2);
    line-height: 1.5;
}

    .cw-addr-row i {
        color: var(--brand);
        font-size: .85rem;
        margin-top: .1rem;
        flex-shrink: 0;
        width: 14px;
    }

.cw-center {
    flex: 1;
    position: relative;
    background: var(--surface);
}

.logo3d-container {
    position: absolute;
    inset: 0;
    display: block;
}

.cw-right {
    width: 210px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 1.75rem 1.75rem 2rem;
    background: var(--surface);
    border-left: 1px solid var(--border-solid);
}

.cw-website-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.6rem;
    background: #0b326d;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .86rem;
    border-radius: 50px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    animation: btnPulse 3s ease-in-out infinite;
    transition: transform .3s ease, gap .3s ease;
}

@keyframes btnPulse {
    0%,100% {
        box-shadow: 0 4px 16px rgba(11,50,109,.30);
    }

    50% {
        box-shadow: 0 6px 28px rgba(11,50,109,.55), 0 0 0 6px rgba(11,50,109,.10);
    }
}

.cw-website-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -65%;
    width: 38%;
    height: 200%;
    background: linear-gradient(to right,transparent,rgba(255,255,255,.28),transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
}

.cw-website-btn:hover::before {
    left: 130%;
}

.cw-website-btn:hover {
    transform: translateY(-2px);
    gap: .88rem;
}

.cw-website-btn i {
    font-size: .78rem;
    transition: transform .3s ease;
}

.cw-website-btn:hover i {
    transform: translateX(3px) translateY(-3px);
}

/* ── Alt-proje seçim paneli (galeri YOK) ── */
.project-details-container {
    display: none;
    position: absolute;
    inset: 0;
    overflow-y: auto;
    background: var(--surface);
    padding: 1.5rem 1.75rem;
    opacity: 0;
    transition: opacity .28s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--border-solid) transparent;
}

    .project-details-container.active {
        display: block;
        opacity: 1;
    }

    .project-details-container::-webkit-scrollbar {
        width: 4px;
    }

    .project-details-container::-webkit-scrollbar-thumb {
        background: var(--border-solid);
        border-radius: 4px;
    }

.error-message {
    background: rgba(180,30,30,.05);
    color: #b52a2a;
    padding: 1rem 1.2rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(180,30,30,.15);
    font-size: .83rem;
    line-height: 1.65;
}

.loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.spinner {
    width: 34px;
    height: 34px;
    border: 2.5px solid var(--border-solid);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--muted);
    margin-top: .6rem;
    font-size: .80rem;
}

/* Breadcrumb (alt-proje panelinde kullanılır) */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .24rem;
    padding: .48rem .72rem;
    background: var(--surface2);
    border: 1px solid var(--border-solid);
    border-radius: var(--r-xs);
    margin-bottom: 1rem;
    font-size: .73rem;
    font-weight: 500;
}

.bc-item {
    color: var(--muted);
    padding: .10rem .24rem;
    border-radius: 4px;
    white-space: nowrap;
    transition: background .14s,color .14s;
}

.bc-link {
    cursor: pointer;
    color: var(--accent);
}

    .bc-link:hover {
        background: var(--accent-soft);
    }

.bc-active {
    color: var(--text-strong);
    cursor: default;
}

.bc-sep {
    color: var(--border-solid);
    font-size: .63rem;
    display: flex;
    align-items: center;
}

/* Alt proje paneli */
.sp-wrapper {
    padding: .3rem 0;
}

.sp-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 1rem;
    padding-bottom: .68rem;
    border-bottom: 1px solid var(--border-solid);
}

    .sp-header i {
        color: var(--accent);
    }

.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: .75rem;
}

.sp-card {
    background: var(--surface2);
    border: 1.5px solid var(--border-solid);
    border-radius: var(--r-sm);
    padding: .82rem .95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: var(--shadow-sm);
    transition: transform .28s, box-shadow .28s, border-color .2s;
}

    .sp-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
        border-color: var(--accent);
    }

    .sp-card:active {
        transform: scale(.97);
    }

.sp-card--parent {
    border-color: rgba(11,50,109,.18);
    background: var(--accent-soft);
}

.sp-media {
    width: 46px;
    height: 46px;
    border-radius: var(--r-xs);
    background: linear-gradient(135deg,#070e1f,#0c1a34);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sp-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.sp-initials {
    font-size: .9rem;
    font-weight: 800;
    color: rgba(90,175,240,.38);
}

.sp-name {
    flex: 1;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-strong);
    line-height: 1.3;
}

.sp-general-label {
    font-size: .62rem;
    font-weight: 400;
    opacity: .52;
    margin-left: .22rem;
}

.sp-arrow {
    color: var(--accent);
    font-size: .74rem;
    opacity: .35;
    flex-shrink: 0;
    transition: opacity .14s;
}

.sp-card:hover .sp-arrow {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   MOBİL ≤ 900px
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    html, body {
        height: auto;
        overflow: auto;
    }

        body > form#form1 {
            height: auto;
            overflow: visible;
        }

    .catalog-layout {
        flex-direction: column;
        overflow: visible;
        flex: none;
    }

    .catalog-left {
        width: 100%;
        overflow-y: visible;
        overflow-x: visible;
        border-right: none;
        border-bottom: 1px solid var(--border-solid);
        padding: .9rem 1rem .8rem;
        flex-shrink: 0;
    }

    .project-grid {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .sc-media {
        height: 105px;
    }

    .catalog-right {
        position: static;
        overflow: visible;
        min-height: 420px;
        flex: none;
    }

    .catalog-welcome {
        flex-direction: column;
        height: auto;
        min-height: 420px;
    }

    .cw-left, .cw-right {
        width: 100%;
        flex-shrink: 0;
        border: none;
        border-top: 1px solid var(--border-solid);
        padding: 1rem 1.25rem;
        align-items: flex-start;
    }

    .cw-website-btn {
        width: 100%;
        justify-content: center;
    }

    .cw-center {
        flex: none;
        height: 260px;
        position: relative;
    }

    .logo3d-container {
        position: absolute;
        inset: 0;
    }

    .project-details-container {
        position: static;
        overflow-y: visible;
        height: auto;
        padding: 1rem;
    }

    .sp-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-card, .project-details-container {
        transition: none !important;
        animation: none !important;
    }
}
