/* MOBIL TAM DÜZELTME - TÜM SAYFALARA UYGULANACAK */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    * {
        max-width: 100vw;
    }
    
    .container,
    .bio-detail-page,
    .hero,
    .header,
    .footer,
    section,
    div {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .container {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }
}
/* YANDEX ARAMA MOTORU TARZI TEMA */

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #f7f7f7;
    background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 100%);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Header - Minimal Yandex Tarzı */
.header {
    background: rgba(255, 255, 255, 0.98);
    color: #000;
    padding: 10px 0;
    box-shadow: none;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-top {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-top .logo {
    order: 1;
    flex: 0 0 auto;
}

.header-top .search-box {
    order: 2;
    flex: 1;
    max-width: 500px;
}

.header-top .hamburger {
    order: 3;
}

.logo h1 {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0;
    color: #fc3f1d;
    font-family: 'Arial', sans-serif;
}

.main-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding-top: 70px;
    overflow-y: auto;
}

.main-nav.active {
    right: 0 !important;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.main-nav a {
    display: block;
    padding: 16px 24px;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: #f7f7f7;
    color: #fc3f1d;
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
    padding: 20px 0;
}

.main-nav li {
    border-bottom: 1px solid #f0f0f0;
}

.main-nav a {
    color: #000;
    font-weight: 400;
    padding: 15px 20px;
    display: block;
    border-radius: 0;
    font-size: 15px;
    transition: background 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: #f9f9f9;
}

/* YANDEX ARAMA KUTUSU - Ana Özellik */
.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ffdb4d;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 6px rgba(255, 219, 77, 0.3);
    position: relative;
    transition: all 0.2s ease;
}

.search-box:hover,
.search-box:focus-within {
    border-color: #ffc800;
    box-shadow: 0 3px 12px rgba(255, 200, 0, 0.4);
}

.search-box input {
    border: none;
    padding: 11px 18px;
    outline: none;
    width: 250px;
    font-size: 14px;
    background: transparent;
    font-family: Arial, sans-serif;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 11px 16px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
    color: #333;
}

.search-box button:hover {
    transform: scale(1.1);
}

/* Hero Section - YANDEX ANA SAYFA TARZI */
.hero {
    background: linear-gradient(to bottom, #ffffff 0%, #f7f7f7 100%);
    color: #000;
    text-align: center;
    padding: 80px 20px 60px;
    margin-bottom: 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 52px;
    margin-bottom: 30px;
    font-weight: 400;
    color: #fc3f1d;
    font-family: Arial, sans-serif;
    letter-spacing: -1px;
}

/* BÜYÜK MERKEZ ARAMA KUTUSU (YANDEX TARZI) */
.hero .search-box {
    max-width: 850px;
    width: 90%;
    margin: 0 auto 30px;
    padding: 0;
    border: 2px solid #ffdb4d;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(255, 219, 77, 0.35);
}

.hero .search-box input {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    border-radius: 12px 0 0 12px;
}

.hero .search-box button {
    padding: 18px 24px;
    font-size: 20px;
    background: #ffdb4d;
    border-radius: 0 12px 12px 0;
    color: #000;
}

.hero .search-box button:hover {
    background: #ffc800;
}

.hero p {
    font-size: 16px;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Hero Slider - Minimal Yandex Tarzı */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f7f7f7;
    border-radius: 8px;
}

.slider-container {
    position: relative;
    width: 100%;
    max-height: 350px;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
    height: 350px;
}

.slide.active {
    display: block;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0.9; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.97);
    border-radius: 8px;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.96), transparent);
    color: #000;
    padding: 40px 0 30px;
}

.slide-content h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 15px;
    margin-bottom: 18px;
    max-width: 700px;
    opacity: 0.75;
}

.btn-hero {
    display: inline-block;
    background: #ffdb4d;
    color: #000;
    padding: 11px 26px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-hero:hover {
    background: #ffc800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 200, 0, 0.3);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #000;
    border: 1px solid #e6e6e6;
    font-size: 20px;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    border-radius: 4px;
    width: 40px;
    height: 40px;
}

.slider-btn:hover {
    background: #ffdb4d;
    border-color: #ffdb4d;
}

.slider-btn.prev {
    left: 15px;
}

.slider-btn.next {
    right: 15px;
}

.slider-dots {
    text-align: center;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    height: 8px;
    width: 8px;
    margin: 0 4px;
    background-color: rgba(0,0,0,0.25);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dot.active,
.dot:hover {
    background-color: #ffdb4d;
    transform: scale(1.2);
}

/* Section Titles - Minimal */
.section-title {
    font-size: 26px;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #ffdb4d;
    border-radius: 1px;
}

/* Categories - Yandex Tarzı Kartlar */
.categories {
    padding: 50px 0;
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.category-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(255, 219, 77, 0.2);
    border-color: #ffdb4d;
}

.category-icon {
    font-size: 56px;
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.12);
}

.category-card h4 {
    font-size: 20px;
    color: #000;
    margin-bottom: 10px;
    font-weight: 500;
}

.category-card p {
    color: #666;
    margin-bottom: 14px;
    font-size: 14px;
}

.btn-link {
    color: #000;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
    font-size: 13px;
    padding: 7px 16px;
    background: #ffdb4d;
    border-radius: 5px;
    margin-top: 6px;
}

.btn-link:hover {
    background: #ffc800;
    transform: translateY(-1px);
}

/* Featured Biographies */
.featured {
    padding: 50px 0;
    background: #f7f7f7;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.bio-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border: 1px solid #f0f0f0;
}

.bio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.bio-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffdb4d 0%, #ffc800 100%);
}

.bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.bio-card:hover .bio-image img {
    transform: scale(1.05);
}

.bio-content {
    padding: 12px;
}

.category-tag {
    display: inline-block;
    background: #ffdb4d;
    color: #000;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-bottom: 7px;
}

.bio-content h4 {
    font-size: 14px;
    color: #000;
    margin-bottom: 7px;
    font-weight: 600;
    line-height: 1.3;
}

.bio-excerpt {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 12px;
}

.btn-read {
    display: inline-block;
    background: #ffdb4d;
    color: #000;
    padding: 7px 14px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
}

.btn-read:hover {
    background: #ffc800;
    transform: translateY(-1px);
}

/* Latest Section */
.latest {
    padding: 50px 0;
    background: white;
}

.latest-list {
    max-width: 800px;
    margin: 0 auto;
}

.latest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    margin-bottom: 10px;
    background: #f7f7f7;
    border-radius: 6px;
    border-left: 3px solid #ffdb4d;
    transition: all 0.2s ease;
}

.latest-item:hover {
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transform: translateX(4px);
}

.latest-item .date {
    color: #666;
    font-weight: 500;
    font-size: 13px;
    min-width: 110px;
}

.latest-item h5 {
    flex: 1;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    margin: 0 18px;
}

.latest-item a {
    color: #000;
    font-weight: 500;
    white-space: nowrap;
}

.latest-item a:hover {
    color: #fc3f1d;
}

/* Footer - Minimal */
.footer {
    background: #f7f7f7;
    color: #000;
    padding: 45px 0 18px;
    margin-top: 50px;
    border-top: 1px solid #e6e6e6;
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-section p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 7px;
}

.footer-section a {
    color: #666;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-section a:hover {
    color: #fc3f1d;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-bottom {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid #e6e6e6;
    color: #666;
    font-size: 13px;
}

/* Hamburger Menu */
.hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: 2;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 6px;
    }

    .header-top .logo {
        flex: 0 0 auto;
    }

    .header-top .hamburger {
        flex: 0 0 auto;
    }

    .header-top .search-box {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
        margin-top: -4px;
    }

    .header-top .search-box input {
        padding: 6px 10px;
        font-size: 13px;
        height: 34px;
    }

    .header-top .search-box button {
        padding: 6px 10px;
        font-size: 14px;
        height: 34px;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #ffffff;
        padding: 70px 18px 18px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav a {
        display: block;
        padding: 14px 18px;
        font-size: 14px;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

    .section-title {
        font-size: 23px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .bio-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        height: 280px;
    }

    .latest-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .latest-item h5 {
        margin: 8px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 16px 40px;
    }

    .hero h2 {
        font-size: 30px;
    }

    .slide {
        height: 220px;
    }
}

/* Mobil için genel düzenleme */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .yandex-container {
        padding: 20px 10px !important;
    }
    
    .yandex-logo {
        font-size: 42px !important;
    }
    
    .yandex-search-box {
        width: 95% !important;
    }
}
