/**
 * Acil Düzeltmeler ve Layout Fixes
 * 
 * @package Karadag_Tema
 */

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

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #ffffff !important;
}

/* Site Wrapper Fix */
.site-wrapper {
    width: 100%;
    max-width: 100vw;
    background-color: #ffffff !important;
}

/* Header Düzeltmeleri */
.site-header {
    width: 100% !important;
    left: 0;
    right: 0;
}

.site-header .container {
    width: 100%;
    max-width: 1400px !important;
    margin: 0 auto !important;
}

.header-inner {
    width: 100%;
}

/* Logo Renk Düzeltmesi */
.site-title,
.site-title a,
.site-title a:visited {
    color: #6dc04b !important;
}

/* Site Description */
.site-description {
    color: #666666 !important;
}

/* Modern Header Override */
.modern-header .site-branding {
    flex-direction: row !important;
    gap: 0 !important;
    background: transparent !important;
}

/* Logo Background Fix */
.site-logo-img {
    background: transparent !important;
    mix-blend-mode: multiply;
}

/* Menü Görünürlük Fix */
.main-navigation {
    display: flex !important;
}

.menu {
    display: flex !important;
    visibility: visible !important;
}

/* Hero Section Ortalama */
.hero-section {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.hero-section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex !important;
    justify-content: center !important;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-title,
.hero-subtitle,
.hero-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}

/* Tüm Section'lar için */
section {
    width: 100% !important;
    margin: 0 !important;
}

section .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Area Fix */
.site-content {
    width: 100% !important;
    padding: 0 !important;
}

.content-area {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Footer Fix */
.site-footer {
    width: 100% !important;
}

.site-footer .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Feature Cards Grid */
.features-grid,
.products-grid,
.values-grid {
    width: 100%;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .site-header .container,
    .hero-section .container,
    section .container,
    .content-area,
    .site-footer .container {
        padding: 0 1rem;
    }
    
    .menu {
        display: none !important;
    }
    
    .menu.active {
        display: flex !important;
    }
}

/* Z-index Fix */
.site-header {
    z-index: 1000 !important;
}

/* Clear Float */
.clear::after,
.container::after {
    content: "";
    display: table;
    clear: both;
}

/* Buton Düzeltmeleri */
.btn,
.btn-primary {
    background: #6dc04b !important;
    color: #ffffff !important;
    border: none !important;
}

.btn:hover,
.btn-primary:hover {
    background: #5aa93d !important;
    color: #ffffff !important;
}

.btn-secondary {
    background: #333e48 !important;
    color: #ffffff !important;
}

.btn-secondary:hover {
    background: #1a2228 !important;
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}
