/**
 * Ana CSS Dosyası
 * Hukuk Sitesi - Genel Stiller
 */

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

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2c6a9e;
    --accent-color: #d4a574;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Topbar */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.topbar {
    background-color: #0f304d;
    color: var(--white);
    font-size: 0.875rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.3rem 0; /* Topbar biraz daha ince */
    gap: 1rem;
    /* Logo kutusu kadar soldan iç boşluk */
    padding-left: 170px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.topbar-left {
    display: none; /* Adres ve mail bilgilerini gizle */
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.topbar-link:hover {
    opacity: 1;
}

.topbar-icon {
    font-size: 0.9rem;
}

.topbar-hours {
    opacity: 0.9;
}

/* Dil Seçici */
.topbar-language-selector {
    position: relative;
    margin-right: 0.5rem; /* Sağ kenardan biraz içeri al */
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.language-toggle:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.language-toggle i.fa-globe {
    font-size: 0.9rem;
}

.language-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.language-dropdown.active .language-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.language-dropdown.active .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu li {
    margin: 0;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
}

.language-option:hover {
    background-color: #f8f9fa;
}

.language-option.active {
    background-color: #e7f3ff;
    color: var(--primary-color);
    font-weight: 500;
}

.language-option.active i {
    color: var(--primary-color);
}

.language-name {
    flex: 1;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.topbar-social-link {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topbar-social-link:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Kare logo kartı */
.logo-card-wrapper {
    position: absolute;
    top: 0; /* Topbar ile aynı hizada başlasın */
    left: 0;
    width: 100%;
    z-index: 15;
    pointer-events: none; /* Menüye tıklamayı engellemesin */
}

.logo-card {
    width: 150px;
    height: 150px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Sol hiza: container içinden, layout'u bozmaz */
    margin: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px; /* Logo görseli için üstten biraz boşluk */
}

.logo-card-link {
    text-decoration: none;
    color: var(--primary-color);
    text-align: center;
    padding: 0 0.5rem;
    pointer-events: auto; /* Link tıklanabilir olsun */
}

.logo-card-text {
    font-size: 0.9rem; /* Logo içi yazı da hafif küçültüldü */
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-header {
    background-color: #000000;
    color: var(--white);
    margin-top: 0; /* Topbar ile header arasında boşluk olmasın */
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.4rem 0; /* Header topbara göre daha yüksek görünsün */
    gap: 1rem;
    /* Logo kutusu kadar soldan iç boşluk */
    padding-left: 170px;
}

.logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem; /* Header menü fontu küçültüldü */
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.2s ease;
}

/* Desktop varsayılanda > ikonlarını gizle (sadece mobilde görünecek) */
.main-nav-icon {
    display: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--header-hover-color, var(--secondary-color, #2c6a9e));
    transition: width 0.25s ease;
}

.main-nav a:hover {
    color: var(--header-hover-color, var(--secondary-color, #2c6a9e));
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 30; /* Mobil menü panelinin üstünde kalsın */
}

.nav-toggle-icon {
    position: absolute;
    font-size: 1.6rem;
    color: #ffffff;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-toggle-bars {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav-toggle-close {
    opacity: 0;
    transform: rotate(-45deg) scale(0.8);
}

.nav-toggle.is-active .nav-toggle-bars {
    opacity: 0;
    transform: rotate(45deg) scale(0.8);
}

.nav-toggle.is-active .nav-toggle-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c49564;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background-color: var(--footer-primary, #1a4d7a);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Footer About Section */
.footer-about {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo a {
    display: inline-block;
    background: var(--white);
    padding: 2rem 2.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-logo a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-logo img {
    max-height: 120px;
    width: auto;
    filter: none;
    display: block;
}

.footer-site-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.5px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-description p {
    margin-bottom: 0.5rem;
}

.footer-description p:last-child {
    margin-bottom: 0;
}

/* Footer Titles */
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--footer-secondary, #2c6a9e);
    border-radius: 2px;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-menu a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--white);
    padding-left: 10px;
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-secondary, #2c6a9e);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--footer-secondary, #2c6a9e);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-contact-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-text span {
    display: block;
}

.footer-contact-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-text a:hover {
    color: var(--footer-secondary, #2c6a9e);
}

/* Footer Social */
.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-social-link:hover {
    background: var(--footer-secondary, #2c6a9e);
    border-color: var(--footer-secondary, #2c6a9e);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 106, 158, 0.3);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.footer-developer {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.footer-developer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-developer a:hover {
    color: var(--footer-secondary, #2c6a9e);
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .footer-about {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1.15rem;
        margin-bottom: 1.25rem;
    }
    
    .footer-social-links {
        justify-content: center;
    }
    
    .footer-contact-item {
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-developer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .main-footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-site-name {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-menu a,
    .footer-contact-text {
        font-size: 0.9rem;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .topbar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        padding-left: 20px;
        padding-right: 20px; /* Header container ile aynı sağ boşluk */
    }

    /* Mobilde dil dropdown'unu biraz daha sağa yaklaştır */
    .topbar-language-selector {
        margin-right: 0.2rem;
    }

    .header-content {
        /* Mobilde header topbardan daha kalın görünsün */
        padding: 1.2rem 0;
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 0;
        left: 0;
        right: auto;
        width: 80%;
        max-width: 320px;
        background-color: #000000; /* siyah arka plan */
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
        height: 100vh; /* tüm ekran yüksekliği */
        transform: translateX(-100%); /* soldan dışarıda başla */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        z-index: 20;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch; /* tüm satırlar tam genişlikte olsun */
        padding: 5rem 0 2.5rem; /* sağ/sol padding yok, satırlar panel genişliğini kullansın */
        gap: 0.85rem;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        padding: 0.5rem 0 0.5rem 1.75rem; /* sağ padding sıfır, ikon en sağa hizalanacak */
        text-align: left;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1rem; /* mobilde menü fontunu büyüt */
    }

    .main-nav-text {
        flex: 1;
        padding-right: 0.75rem;
    }

    .main-nav-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        margin-left: auto;
        margin-right: 0.75rem; /* ikonu panelin kenarına çok yakın hizala */
    }

    .main-nav-icon i {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .main-nav.active {
        transform: translateX(0); /* soldan sağa açılma efekti */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Up Button */
.page-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.page-up-btn.show {
    opacity: 1;
    visibility: visible;
}

.page-up-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-up-btn:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .page-up-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

