/* MOBİLDE DESKTOP MENÜYÜ GİZLE */
@media screen and (max-width: 768px) {
    .desktop-menu,
    .desktop-button {
        display: none !important;
    }
    
    .mobile-toggle {
        display: block !important;
    }
}

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #2d3748;
    background: #e1e1e1;
}

/* Container */
.site-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Stilleri */
.site-header {
    background: #000000;
}

.site-top-header-wrap {
    background: #27894e;
    padding: 0.5rem 0;
}

.site-main-header-wrap {
    background: #fcf9f9;
    padding: 1rem 0;
}

.site-header-inner-wrap {
    display: flex;
    flex-direction: column;
}

.site-header-upper-inner-wrap {
    display: flex;
    flex-direction: column;
}

.site-top-header-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.site-main-header-inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.site-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-header-row-has-sides {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header-section-left {
    flex: 1;
}

.site-header-section-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: nowrap;
}

.site-branding .site-title {
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.site-branding a {
    text-decoration: none;
    color: inherit;
}

.header-html {
    color: #ffffff;
    font-weight: bold;
}

.header-html p {
    margin: 0;
}

/* Navigation */
.main-navigation {
    flex: 1;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #000000;
    text-decoration: none;
    padding: 0.6em 0.6em;
    display: block;
    transition: color 0.3s ease;
    font-size: 14px;
}

.main-navigation a:hover {
    color: #0a9c06;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #0a9c06;
    font-weight: 600;
    position: relative;
}

/* Aktif menü öğesi için her zaman görünür çizgi */
.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #2d5016;
    border-radius: 2px;
    width: 100% !important; /* Her zaman görünür */
    opacity: 1 !important; /* Her zaman görünür */
}

/* Sadece aktif olmayan menü öğelerinde hover efekti */
.header-navigation-style-underline .primary-menu-container > ul > li:not(.current-menu-item):not(.current_page_item) > a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0a9c06;
    transition: width 0.3s ease;
}

.header-navigation-style-underline .primary-menu-container > ul > li:not(.current-menu-item):not(.current_page_item):hover > a:after {
    width: calc(100% - 1.2em);
}

/* Header Button */
.header-button-wrap {
    margin-left: 1rem;
}

.header-button {
    background: #0a9c06;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0px 0px 0px -7px rgba(0,0,0,0);
    white-space: nowrap;
    min-width: fit-content;
}

.header-button:hover {
    background: #0a9c06;
    border-color: #0a9c06;
    box-shadow: 0px 15px 25px -7px rgba(0,0,0,0.1);
    color: #ffffff;
}

.button-size-small {
    padding: 0.4rem 0.8rem;
    font-size: 13px;
    white-space: nowrap;
}

/* Content Area */
.content-area {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.content-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.content-wrap {
    display: block;
}

/* Post Thumbnail */
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Entry Content */
.entry {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 15px 15px -10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.entry-content-wrap {
    padding: 2rem;
}

.entry-title {
    font-size: 32px;
    font-weight: 400;
    color: #1A202C;
    margin-bottom: 1rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2 {
    font-size: 28px;
    font-weight: 400;
    color: #1A202C;
    margin: 2rem 0 1rem 0;
}

.entry-content h3 {
    font-size: 24px;
    font-weight: 400;
    color: #1A202C;
    margin: 1.5rem 0 1rem 0;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul, .entry-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Table Stilleri */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.entry-content table td {
    padding: 1rem;
    border-bottom: 1px solid #e1e1e1;
    font-size: 16px;
}

.entry-content table tr:last-child td {
    border-bottom: none;
}

/* MaxButton Stilleri */
.maxbutton-1, .maxbutton-tikla-betvino-e-hemen-ulas {
    position: relative;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
    width: 100%;
    height: 50px;
    border: 2px solid #0a9c06;
    border-radius: 4px;
    background-color: #0a9c06;
    box-shadow: 0px 0px 2px 0px #333333;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.maxbutton-1:hover {
    border-color: #0a9c06;
    background-color: #0a9c06;
    box-shadow: 0px 0px 2px 0px #333333;
    transform: translateY(-2px);
}

.maxbutton-1 .mb-text {
    color: #ffffff;
    font-family: Arial;
    font-size: 15px;
    text-align: center;
    font-style: normal;
    font-weight: bold;
    line-height: 1em;
    display: block;
    position: relative;
    padding: 5px 0px 0px 0px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maxbutton-1 .mb-text .mb-icon {
    color: #ffffff;
    font-size: 30px;
    text-align: left;
    line-height: 30px;
    display: inline-block;
    vertical-align: middle;
    padding: 5px 6px 0px 18px;
}

.maxbutton-1:hover .mb-text .mb-icon {
    display: none;
}

.maxbutton-1:hover .mb-text .mb-icon-hover {
    display: inline-block;
}

.maxbutton-1 .mb-text .mb-icon-hover {
    font-size: 30px;
    color: #ffffff;
    text-align: left;
    line-height: 30px;
    vertical-align: middle;
    display: none;
    padding: 5px 6px 0px 18px;
}

/* Separator */
.wp-block-separator {
    border: none;
    height: 2px;
    background: #e1e1e1;
    margin: 2rem 0;
}

/* Sidebar */
.primary-sidebar {
    background: #e1e1e1;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.primary-sidebar .widget {
    margin-bottom: 1.5rem;
}

.primary-sidebar .widget-title {
    font-weight: 700;
    font-size: 20px;
    color: #1A202C;
    margin-bottom: 1rem;
}

.primary-sidebar .wp-block-search {
    margin-bottom: 1.5rem;
}

.primary-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.primary-sidebar .wp-block-search__input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0;
}

.primary-sidebar .wp-block-search__button {
    background: #0a9c06;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.primary-sidebar .wp-block-search__button:hover {
    background: #27894e;
}

/* Arama Sonuçları */
.search-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-weight: bold;
    color: #0a9c06;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.search-result-excerpt {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.search-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: bold;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.primary-sidebar .wp-block-latest-posts__list {
    list-style: none;
    padding: 0;
}

.primary-sidebar .wp-block-latest-posts__list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.primary-sidebar .wp-block-latest-posts__list li:last-child {
    border-bottom: none;
}

.primary-sidebar .wp-block-latest-posts__post-title {
    color: #0a9c06;
    text-decoration: none;
    font-size: 14px;
}

.primary-sidebar .wp-block-latest-posts__post-title:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #000000;
    color: #ffffff;
    margin-top: 3rem;
}

.site-middle-footer-inner-wrap {
    padding: 30px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.site-bottom-footer-inner-wrap {
    padding: 30px 0;
    border-top: 1px solid #333;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-navigation a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
}

.footer-navigation a:hover {
    text-decoration: underline;
}

/* Desktop menü - sadece desktop'ta görünür */
.desktop-menu {
    display: block;
}

.desktop-button {
    display: block;
}

/* Mobile Header (Ayrı) */
.mobile-header {
    display: none;
    position: relative;
    z-index: 1000;
}

.mobile-header-top {
    background: #2d5016;
    color: white;
    padding: 8px 20px;
    text-align: left;
    font-size: 14px;
    height: 40px;
    display: flex;
    align-items: center;
}

.mobile-header-main {
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
}

.mobile-logo a {
    text-decoration: none;
    color: #333;
}

.mobile-site-title {
    font-size: 24px;
    font-weight: bold;
    color: #2d5016;
}

.mobile-hamburger {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
    height: 18px;
}

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

.hamburger-icon span:nth-child(1) {
    width: 100%;
}

.hamburger-icon span:nth-child(2) {
    width: 100%;
}

.hamburger-icon span:nth-child(3) {
    width: 100%;
}

/* Mobile hamburger - sadece mobilde görünür */
.mobile-toggle {
    display: none;
}

/* Desktop'ta mobile header'ı gizle */
@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }
    
    .mobile-toggle {
        display: none !important;
    }
}

/* MOBİL RESPONSIVE - KÖKTEN ÇÖZÜM */
@media (max-width: 768px) {
    /* Header yönetimi */
    .site-header {
        display: none !important;
    }
    
    .mobile-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    /* Main content - mobile header'dan sonra başlat */
    #inner-wrap {
        margin-top: 100px !important;
    }
    
    /* Grid layout - mobile için tek sütun */
    .content-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Content sıralaması */
    .content-wrap {
        order: 1 !important;
    }
    
    .primary-sidebar {
        order: 2 !important;
    }
    
    /* Tüm content elementlerini görünür yap */
    .site-main,
    .content-container,
    .content-wrap,
    .primary-sidebar,
    .post-thumbnail,
    .entry,
    .entry-content,
    .site-footer,
    .widget,
    .wp-block-group,
    .wp-block-heading,
    .wp-block-list,
    .wp-block-separator,
    .maxbutton,
    .wp-block-latest-posts,
    .wp-block-search,
    .entry-content-wrap,
    .entry-header,
    .entry-title,
    .single-content,
    .post-thumbnail-inner,
    .wp-post-image,
    .maxbutton-1,
    .mb-text,
    .mb-icon,
    .mb-icon-hover {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Özel elementler için */
    .post-thumbnail {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .entry {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .entry-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .site-footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}



.mobile-html {
    color: #ffffff;
    font-weight: bold;
}

.mobile-html p {
    margin: 0;
}

.mobile-site-branding .site-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.mobile-toggle-open-container .menu-toggle-open {
    color: #27894e;
    padding: 0.4em 0.6em;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle-open-container .menu-toggle-open:hover {
    color: #0a9c06;
}

.mobile-toggle-open-container .menu-toggle-open .menu-toggle-icon {
    font-size: 20px;
}

/* Mobile Drawer */
.popup-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

.popup-drawer-open {
    right: 0;
}

.popup-drawer .drawer-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
}

.popup-drawer .drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.popup-drawer .drawer-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.popup-drawer .menu-toggle-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.popup-drawer .toggle-close-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    margin: 3px 0;
}

.popup-drawer .mobile-menu-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-drawer .mobile-menu-container li {
    margin: 10px 0;
}

.popup-drawer .mobile-menu-container a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.popup-drawer .mobile-menu-container a:hover {
    background: #f5f5f5;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.popup-drawer.showing-popup-drawer-from-right .drawer-overlay {
    display: block;
}

.drawer-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.menu-toggle-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.toggle-close-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.toggle-close-bar:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.toggle-close-bar:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-navigation li {
    margin: 0;
}

.mobile-navigation a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.mobile-navigation a:hover {
    background-color: #f8f9fa;
    color: #0a9c06;
}

.mobile-navigation .current-menu-item a {
    background-color: #f8f9fa;
    color: #0a9c06;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .site-container {
        padding: 0 1rem;
    }
    
    .entry-content-wrap {
        padding: 1.5rem;
    }
    
    .primary-sidebar {
        padding: 1.5rem;
    }
    
    .primary-sidebar .wp-block-search__inside-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .primary-sidebar .wp-block-search__button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-header-section-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .header-button {
        width: 100%;
        text-align: center;
    }
    
    .entry-title {
        font-size: 24px;
    }
    
    .entry-content h2 {
        font-size: 22px;
    }
    
    .entry-content h3 {
        font-size: 20px;
    }
    
    .maxbutton-1 {
        width: 90%;
    }
    
    .maxbutton-1 .mb-text {
        font-size: 12px;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        text-align: center;
    }
    
    .site-middle-footer-inner-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.wp-block-heading {
    margin: 2rem 0 1rem 0;
}

.wp-block-list {
    margin: 1rem 0;
    padding-left: 2rem;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

/* Skip Link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 999999;
    background: #000;
    color: #fff;
    padding: 10px;
    text-decoration: none;
}

/* Screen Reader Text */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #0a9c06;
    outline-offset: 2px;
}

/* Loading States */
.litespeed-loading {
    opacity: 0.7;
}

.litespeed-loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .site-header,
    .primary-sidebar,
    .site-footer {
        display: none;
    }
    
    .content-container {
        grid-template-columns: 1fr;
    }
    
    .entry {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
