/* Genel Stil Dosyası */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #A8D5BA;
    --secondary-color: #7CB342;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6BA03A 100%);
    color: var(--white);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    overflow: visible;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 2rem 0;
    z-index: 1;
    overflow: visible;
    min-height: 130px;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: transform 0.3s ease;
    overflow: visible;
}

.logo:hover {
    transform: translateX(-50%) scale(1.05);
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
}

.logo-emblem {
    width: 130px;
    height: 130px;
    background: linear-gradient(135deg, var(--white) 0%, #f8f8f8 100%);
    border: 5px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 2px 8px rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

.logo-emblem > * {
    position: relative;
    z-index: 2;
}

.logo-emblem::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.logo-emblem:hover::before {
    animation: shine 1.5s infinite;
}

.logo-emblem:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.9);
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.logo-emblem-top {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    margin-bottom: 0.15rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.logo-emblem-bottom {
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 900;
    line-height: 1;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    font-family: 'Dancing Script', 'Pacifico', 'Lobster', cursive;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    margin: 0;
    text-align: center;
    width: 100%;
}

.logo-emblem:hover .logo-emblem-bottom {
    transform: rotate(2deg) scale(1.1);
}

.nav {
    display: flex;
    flex: 1;
    z-index: 5;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 10rem;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 10rem;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.6rem 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav a:hover::before,
.nav a.active::before {
    width: 80%;
}

.nav a:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav a.active {
    color: var(--white);
    font-weight: 700;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer (İSTEDİĞİN ŞEKİL: üst ayırıcı çizgi + 3 kolon kutu) */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #6BA03A 100%);
    color: var(--white);
    padding: 2.6rem 0 1.4rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* üst ayırıcı çizgi (kırmızı çizgi mantığı: net ayırma) */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.22);
}

/* 3 kolon düzen: GRID */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: stretch;
    margin-bottom: 1.6rem;
}

/* Maviyle çizdiğin kutu hissi */
.footer-section {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Başlık alanı */
.footer-section > h3 {
    margin: 0 0 0.9rem 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    width: 100%;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

/* İçerik yazıları */
.footer-section > p {
    margin: 0 0 0.55rem 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    width: 100%;
}

/* Link listesi */
.footer-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-links-grid li {
    margin: 0;
}

.footer-links-grid a,
.footer-links-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-links-grid a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Genel link davranışı */
.footer-section a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.footer-section a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.social-media a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.social-media svg {
    transition: transform 0.2s ease;
}

.social-media a:hover svg {
    transform: scale(1.08);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
    margin: 0;
    padding: 0;
}

/* Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .header-content {
        position: relative;
        flex-wrap: nowrap;
        padding: 0.8rem 0;
        min-height: 70px;
        justify-content: space-between;
    }

    .logo {
        position: relative;
        left: 0;
        transform: none !important;
        order: 1;
        width: auto;
        margin: 0;
        overflow: visible;
        flex: 0 0 auto;
    }

    .logo:hover {
        transform: scale(1.05) !important;
    }

    .logo-emblem {
        width: 70px;
        height: 70px;
        margin: 0;
    }

    .logo-emblem:hover {
        transform: none;
    }

    .logo-emblem-top {
        font-size: 0.7rem;
    }

    .logo-emblem-bottom {
        font-size: 1.5rem;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        order: 2;
        color: var(--white);
        flex: 0 0 auto;
        margin-left: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        max-width: 280px;
        min-width: 200px;
        height: 50vh;
        max-height: 400px;
        background: var(--secondary-color);
        z-index: 1002;
        transition: right 0.3s ease;
        padding: 2rem 1.5rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        border-radius: 0 0 0 15px;
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
    }

    .nav ul li {
        width: 100%;
    }

    .nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        color: var(--white);
    }

    .nav a:hover,
    .nav a.active {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
        color: var(--white);
    }

    .nav a.active::after {
        display: none;
    }

    .main-content {
        padding: 1.5rem 0;
        min-height: calc(100vh - 150px);
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr; /* mobilde tek kolon */
        gap: 1rem;
    }

    .footer-section {
        padding: 1.1rem;
    }

    .footer-bottom {
        padding-top: 1.2rem;
        font-size: 0.85rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header-content {
        padding: 0.6rem 0;
        min-height: 60px;
    }

    .logo-emblem {
        width: 60px;
        height: 60px;
    }

    .logo-emblem-top {
        font-size: 0.6rem;
    }

    .logo-emblem-bottom {
        font-size: 1.2rem;
    }

    .mobile-menu-toggle {
        font-size: 1.3rem;
        padding: 0.4rem;
    }

    .nav {
        width: 100%;
        max-width: 100%;
    }
}
