/* style.css */
html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0; padding: 0;
    background-color: #f4f4f4; color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #1a202c; 
    color: white;
    padding: 25px 0; 
    text-align: center;
}

header h1, .section-title, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

nav {
    display: flex; 
    justify-content: center;
    background-color: #348c51;
}

nav a {
    color: #e2e8f0; 
    text-decoration: none;
    padding: 15px 25px; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 30px;
}

nav a i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

nav a:hover i {
    transform: translateY(-2px);
    color: #fff;
}

.container {
    max-width: 1200px; margin: 20px auto;
    background: white; padding: 20px;
    border-radius: 8px; box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- MODERN FOOTER TASARIMI --- */
.site-footer {
    background-color: #1a202c; 
    color: #ecf0f1;
    padding: 50px 0 30px 0;
    margin-top: auto; 
    border-top: 1px solid #2d3748;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-brand h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #ffffff;
}

.footer-brand p {
    color: #a0aec0;
    font-size: 14px;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: #ffffff;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
}

.footer-col a {
    color: #a0aec0;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

/* --- LOGO VE HEADER AYARLARI --- */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.site-logo {
    height: 100px;
    width: auto;
    border-radius: 50%;
}

/* --- TARİHÇE SAYFASI TASARIMI --- */
.tarihce-container {
    padding: 40px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border-radius: 20px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #2d3748, #4a5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 50px;
}

.story-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05), 0 20px 48px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.tree-viewport + .story-card::before,
.tree + .story-card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('KEMBİLO.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 800px;
    opacity: 0.09;
    z-index: -1;
    pointer-events: none;
}

.story-image img {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.05) rotate(2deg);
}

.story-text h3 {
    margin-top: 0;
    color: #2d3748;
}

.story-text p {
    line-height: 1.8;
    color: #4a5568;
    font-size: 16px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.info-box {
    background: #1a202c;
    color: white;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.info-box h4 {
    margin-top: 0;
    color: #63b3ed;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #cbd5e0;
}

.time-dot {
    width: 12px;
    height: 12px;
    background: #3182ce;
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 5px;
}

.time-text {
    color: #4a5568;
}

.nostalji-seridi {
    display: flex;
    gap: 15px;
    margin: 40px 0;
    overflow-x: auto;
    padding-bottom: 15px;
}

.nostalji-seridi img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(80%);
    transition: filter 0.5s ease;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nostalji-seridi img:hover {
    filter: grayscale(0%);
}

/* --- DUYURULAR --- */
.announcement-item {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
    border-left: 5px solid #3182ce;
    animation: fadeInUp 0.6s ease-out forwards;
}

.announcement-item:hover {
    transform: scale(1.02);
}

.announcement-date {
    display: inline-block;
    background-color: #ebf8ff;
    color: #2b6cb0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* --- FORM VE ÜYE OL --- */
.custom-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.register-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #3182ce, #2b6cb0);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

/* --- İLETİŞİM --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info {
    background: #1a202c !important;
    color: white !important;
    padding: 30px;
    border-radius: 15px;
}

.info-item i {
    color: #348c51;
    margin-right: 8px;
}

/* --- SOYAĞACI --- */
.tree-viewport {
    width: 100%;
    height: 85vh;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e2e8f0;
}

.tree-viewport::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 700px;
    background-image: url('KEMBİLO.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.member-box {
    background-color: #ffffff !important;
    border: 2px solid #348c51 !important;
    color: #1a202c !important;
    padding: 15px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    min-width: 150px !important;
    text-align: center !important;
}

.member-box span {
    font-weight: 800 !important;
    color: #1a202c !important;
}

/* --- MODAL --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* --- MOBİL UYUMLULUK VE BOŞLUK DÜZELTMELERİ --- */
@media (max-width: 850px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body {
        display: block !important;
        min-height: auto !important;
    }
    
    .site-footer {
        margin-top: 50px !important;
        position: relative !important;
    }

    .footer-links {
        justify-content: flex-start;
        gap: 40px;
        margin-top: 20px;
    }

    .story-card { flex-direction: column; text-align: center; }
    .history-grid { grid-template-columns: 1fr; }
    .tree-viewport { height: 70vh; }
}

/* iPhone ve Çok Dar Ekranlar İçin Final Dokunuş */
@media (max-width: 480px) {
    html, body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden;
    }
    
    .container, .main-container {
        padding-bottom: 20px !important;
        min-height: auto !important;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}