@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #16A34A;          /* Forest Green */
    --primary-dark: #15803D;
    --primary-light: #22C55E;
    --primary-glow: rgba(22, 163, 74, 0.25);
    --accent: #3B82F6;           /* Blue */
    --accent-dark: #2563EB;
    --bg-body: #F0FDF4;          /* Very light green */
    --bg-card: #FFFFFF;
    --bg-card-open: #F7FEF9;
    --border: #D1FAE5;
    --border-dark: #A7F3D0;
    --text-body: #1A2E20;
    --text-muted: #6B7280;
    --hero-from: #166534;
    --hero-to: #22C55E;
    --hero-text: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== ARKA PLAN CANVAS ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    color: var(--hero-text);
    text-align: center;
    padding: 1.4rem 1rem 2.4rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

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

/* ===== LOGO ===== */
.hero-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    vertical-align: middle;
    background: #ffffff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.25), 0 0 0 2px rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
}

/* ===== DİL SEÇİCİ ===== */
.lang-select-wrapper {
    position: absolute;
    top: 12px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}

.lang-select-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lang-select {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    max-width: 160px;
    outline: none;
    transition: background 0.2s;
}

.lang-select:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
}

.lang-select option {
    background: #166534;
    color: #fff;
}

/* ===== CONTAINER ===== */
.container {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

/* ===== ANA BUTON ===== */
.action-area {
    display: flex;
    justify-content: center;
    margin: -25px 0 30px 0;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 15px 35px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--primary-glow);
}

.primary-btn:active {
    transform: translateY(0);
}

/* ===== GRID ===== */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 40px;
}

.initial-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 40px 20px;
    font-size: 1rem;
}

/* ===== KART ===== */
.place-card {
    background: var(--bg-card);
    border-radius: 14px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}

.place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.12);
    border-color: var(--border-dark);
}

.place-card.open {
    border-color: var(--primary);
    box-shadow: 0 6px 24px var(--primary-glow);
}

/* ===== KART BAŞLIĞI ===== */
.place-header {
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    border-left: 4px solid var(--primary-light);
    transition: background 0.18s, border-left-color 0.22s;
    user-select: none;
}

.place-card.open .place-header {
    background: #F0FDF4;
    border-left-color: var(--primary);
}

.place-header:active {
    transform: scale(0.99);
}

.place-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A2E20;
    transition: color 0.2s;
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.place-card.open .place-title {
    color: var(--primary-dark);
}

.place-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.place-distance {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* Chevron oku */
.chevron {
    display: inline-block;
    font-style: normal;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1), color 0.22s;
    line-height: 1;
}

.place-card.open .chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

/* ===== KART İÇERİK ===== */
.place-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
    background: var(--bg-card-open);
}

.place-content.active {
    max-height: 600px;
    border-top: 1px solid var(--border);
}

.content-inner {
    padding: 18px 18px 16px;
}

.content-inner p {
    margin-bottom: 12px;
    line-height: 1.65;
    color: #374151;
    font-size: 0.92rem;
}

/* ===== KART GÖRSELLERİ ===== */
.card-images {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.card-img {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.card-img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ===== AKSİYON LİNKLER ===== */
.action-links { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-nav, .btn-video {
    text-decoration: none;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.15s, opacity 0.15s;
    font-family: inherit;
}

.btn-nav:hover, .btn-video:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}

.btn-video {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: #fff;
}

/* ===== DAHA FAZLA BUTONU ===== */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    border: 2px dashed var(--border-dark);
    border-radius: 12px;
    background: transparent;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    font-family: inherit;
    margin-top: 4px;
}

.show-more-btn:hover {
    background: #ECFDF5;
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--hero-from);
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.footer-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 36px 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
}

.footer-school {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.5;
    max-width: 220px;
}

.footer-tagline {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #BBF7D0;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 14px 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .hero { padding: 2rem 1rem 3rem; }
    .hero h1 { font-size: 1.5rem; }
    .primary-btn { font-size: 0.95rem; padding: 12px 24px; }
    .place-header { padding: 14px 14px; }
    .place-title { font-size: 0.92rem; }
    .card-img { width: 130px; height: 95px; }
    .lang-switcher { gap: 6px; }
    .lang-btn { padding: 5px 10px; font-size: 0.78rem; }
    .footer-main { flex-direction: column; align-items: center; text-align: center; }
    .footer-contact { align-items: center; }
}