/*
Theme Name: LatestversionEzaff Template - Page Builder Edition
Theme URI: https://ezaff.com/
Author: Ezaff
Author URI: https://ezaff.com/
Description: Ezaff için geliştirilmiş; Elementor, Beaver Builder, Gutenberg ve diğer popüler page builder'lar ile tam uyumlu, Customizer desteği, dinamik widget alanları ve gelişmiş filtreleme özelliklerine sahip, tam teşekküllü, profesyonel bir WordPress teması.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: page-builder, elementor, gutenberg, dark, responsive-layout, custom-menu, custom-post-type, custom-taxonomy, block-styles, front-page, blog, comments, theme-options, custom-logo, widget-ready, full-site-editing
Text Domain: ezafftemplate
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* =============================================================================
   PAGE BUILDER UYUMLULUK STİLLERİ
   ============================================================================= */

/* Genel container ayarları */
.page-builder-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Elementor uyumluluğu */
.elementor-page .site-header,
.elementor-page .site-footer {
    z-index: 999;
}

.elementor-page .content-area {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Beaver Builder uyumluluğu */
.fl-builder-page .content-area {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Gutenberg full-width blokları */
.wp-block-group.alignfull,
.wp-block-cover.alignfull,
.wp-block-image.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* Gutenberg wide blokları */
.wp-block-group.alignwide,
.wp-block-cover.alignwide,
.wp-block-image.alignwide {
    width: calc(100% + 4rem);
    max-width: calc(100% + 4rem);
    margin-left: -2rem;
}

/* =============================================================================
   TEMEL TEMA STİLLERİ
   ============================================================================= */

/* Reset ve temel stiller */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* =============================================================================
   RESPONSIVE AYARLAR
   ============================================================================= */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Gutenberg blokları için mobil ayarlar */
    .wp-block-group.alignwide,
    .wp-block-cover.alignwide,
    .wp-block-image.alignwide {
        width: 100%;
        margin-left: 0;
    }
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */

/* Focus states */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

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

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .no-print {
        display: none !important;
    }
}

/* =============================================================================
   ANASAYFA ÖZELLEŞTİRMELERİ
   ============================================================================= */

/* Hero Section Özelleştirmeleri */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Feature Cards Hover Efektleri */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
    color: #2563eb !important;
}

/* Offer Cards Özelleştirmeleri */
.offer-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.offer-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.offer-card:hover::after {
    transform: scaleX(1);
}

.offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Blog Cards Özelleştirmeleri */
.blog-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    transition: transform 0.3s ease;
}

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

/* Button Özelleştirmeleri */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover::after {
    opacity: 0.1;
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animasyonları */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Özelleştirmeler */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
    
    .offer-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* Dark Mode Desteği */
@media (prefers-color-scheme: dark) {
    .feature-card,
    .offer-card,
    .blog-card {
        background-color: #1f2937;
        border-color: #374151;
    }
    
    .feature-card:hover,
    .offer-card:hover,
    .blog-card:hover {
        background-color: #111827;
        border-color: #3b82f6;
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.feature-card:focus,
.offer-card:focus,
.blog-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-section,
    .feature-card,
    .offer-card,
    .blog-card {
        break-inside: avoid;
    }
    
    .btn-primary,
    .btn-secondary {
        background: #000 !important;
        color: #fff !important;
    }
}

