/*
Theme Name: Freelancer Landing
Description: Modern landing page child theme for Freelancer. Built with Tailwind CSS and ACF Gutenberg blocks. Perfect for freelancer showcase websites.
Author: Your Name
Author URI: https://example.com
Template: freelancer
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: freelancer-landing
Domain Path: /languages
Tags: landing-page, one-column, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, flexible-header, full-width-template, theme-options, translation-ready, block-styles, wide-blocks

Freelancer Landing WordPress Theme, Copyright 2024
Freelancer Landing is distributed under the terms of the GNU GPL v2 or later.

This theme, like WordPress, is licensed under the GPL.
*/

/* 
 * This theme uses Tailwind CSS from Core plugin
 * All styling is done with Tailwind utility classes
 * Only WordPress-specific overrides are included here
 */

/* Ensure Poppins font is applied globally */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Blog sayfaları için siyah arka plan */
body.single-post,
body.blog,
body.archive,
body.category,
body.tag,
body.search-results {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Blog içerik alanları için siyah arka plan */
.single-post .site-main,
.blog .site-main,
.archive .site-main,
.category .site-main,
.tag .site-main,
.search-results .site-main,
.single-post .entry-content,
.blog .entry-content,
.archive .entry-content,
.category .entry-content,
.tag .entry-content,
.search-results .entry-content,
.single-post .single-blog-content,
.blog .single-blog-content,
.archive .single-blog-content,
.category .single-blog-content,
.tag .single-blog-content,
.search-results .single-blog-content {
    background-color: #000000 !important;
    background: #000000 !important;
}

/* Landing page specific styles */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hero Slider Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wordSlide {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes glowText {
    0%, 100% {
        text-shadow: 0 0 10px rgba(252, 211, 7, 0.8),
                     0 0 20px rgba(252, 211, 7, 0.6),
                     0 0 30px rgba(147, 51, 234, 0.6),
                     0 0 40px rgba(236, 72, 153, 0.4),
                     0 0 50px rgba(252, 211, 7, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(252, 211, 7, 1),
                     0 0 40px rgba(252, 211, 7, 0.8),
                     0 0 60px rgba(147, 51, 234, 0.8),
                     0 0 80px rgba(236, 72, 153, 0.6),
                     0 0 100px rgba(252, 211, 7, 0.4);
    }
}

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

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) rotate(180deg);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) translateX(10px) rotate(270deg);
        opacity: 0.6;
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Hero Animation Classes */
.hero-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.hero-slide-up-delay {
    animation: slideUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-word-slide {
    animation: wordSlide 0.6s ease-out forwards;
    opacity: 0;
    display: inline-block;
    transform-style: preserve-3d;
}

.hero-buttons-slide {
    animation: slideUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-glow-text {
    animation: glowText 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(252, 211, 7, 0.8));
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.animate-gradient-shift {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* Particles */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat linear infinite;
    pointer-events: none;
}

/* Section spacing */
.landing-section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    .landing-section {
        padding: 3rem 0;
    }
}


/* Modern Hero Styles */
.landing-hero-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    min-height: calc(100vh - 3rem); /* 100vh - header height (48px = 3rem) */
}

@media (min-width: 1024px) {
    .landing-hero-modern {
        min-height: calc(100vh - 3.5rem); /* 100vh - header height (56px = 3.5rem) */
    }
}

.hero-text-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-slide {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

/* Hero başlığı — Neden Biz ile aynı kalınlık; prose h1 override'ını geçersiz kıl */
.prose .landing-hero-modern .hero-title-slide,
.prose .landing-hero-modern h1.hero-title-slide,
.entry-content .landing-hero-modern .hero-title-slide,
.entry-content .landing-hero-modern h1.hero-title-slide,
.entry-content.prose .landing-hero-modern .hero-title-slide,
.entry-content.prose .landing-hero-modern h1.hero-title-slide,
.single-blog-content .landing-hero-modern .hero-title-slide,
.single-blog-content .landing-hero-modern h1.hero-title-slide,
.landing-hero-modern .hero-title-slide,
.landing-hero-modern h1.hero-title-slide {
    color: #ffffff !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 2.25rem !important;
}

@media (min-width: 640px) {
    .prose .landing-hero-modern .hero-title-slide,
    .prose .landing-hero-modern h1.hero-title-slide,
    .entry-content .landing-hero-modern .hero-title-slide,
    .entry-content .landing-hero-modern h1.hero-title-slide,
    .entry-content.prose .landing-hero-modern .hero-title-slide,
    .entry-content.prose .landing-hero-modern h1.hero-title-slide,
    .landing-hero-modern .hero-title-slide,
    .landing-hero-modern h1.hero-title-slide {
        font-size: 3rem !important;
    }
}

@media (min-width: 768px) {
    .prose .landing-hero-modern .hero-title-slide,
    .prose .landing-hero-modern h1.hero-title-slide,
    .entry-content .landing-hero-modern .hero-title-slide,
    .entry-content .landing-hero-modern h1.hero-title-slide,
    .entry-content.prose .landing-hero-modern .hero-title-slide,
    .entry-content.prose .landing-hero-modern h1.hero-title-slide,
    .landing-hero-modern .hero-title-slide,
    .landing-hero-modern h1.hero-title-slide {
        font-size: 3.75rem !important;
    }
}

@media (min-width: 1024px) {
    .prose .landing-hero-modern .hero-title-slide,
    .prose .landing-hero-modern h1.hero-title-slide,
    .entry-content .landing-hero-modern .hero-title-slide,
    .entry-content .landing-hero-modern h1.hero-title-slide,
    .entry-content.prose .landing-hero-modern .hero-title-slide,
    .entry-content.prose .landing-hero-modern h1.hero-title-slide,
    .landing-hero-modern .hero-title-slide,
    .landing-hero-modern h1.hero-title-slide {
        font-size: 4.5rem !important;
    }
}

.hero-description-slide {
    animation: slideUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-stats-slide {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-features-slide {
    animation: slideUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-stats-bottom {
    animation: slideUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

/* Before/After Component */
.hero-before-after-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: flex-end;
}

/* Hero Image Animation */
.hero-image-animate {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-before-after-container {
    width: 700px;
    height: 700px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.hero-before-after-placeholder {
    width: 700px;
    height: 700px;
}

.hero-before-image,
.hero-after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-before-image img,
.hero-after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-handle {
    user-select: none;
    transition: width 0.2s ease;
    will-change: left;
}

.hero-slider-handle {
    width: 1px !important;
}

.hero-slider-handle:hover {
    width: 2px !important;
}

.hero-slider-handle:active {
    width: 3px !important;
}

.hero-slider-handle > div:first-child {
    transform: translate(-50%, -50%);
    position: absolute;
    top: 50%;
    left: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-slider-handle:hover > div:first-child {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Önce/Sonra Labels */
.hero-slider-label-left,
.hero-slider-label-right {
    transition: left 0s, transform 0s;
}

.hero-slider-label-left > div,
.hero-slider-label-right > div {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-slider-handle:hover ~ .hero-slider-label-left > div,
.hero-slider-handle:hover ~ .hero-slider-label-right > div,
.hero-before-after-container:hover .hero-slider-label-left > div,
.hero-before-after-container:hover .hero-slider-label-right > div {
    opacity: 0.95;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-before-after-container,
    .hero-before-after-placeholder {
        width: 600px;
        height: 600px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-before-after-container,
    .hero-before-after-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-width: 500px;
        margin: 1rem auto 0;
    }
    
    .landing-hero-modern {
        padding: 1rem 0;
        align-items: flex-start;
    }
    
    .landing-hero-modern .grid {
        grid-template-columns: 1fr;
    }
}

/* Override prose/entry-content background rules for hero section - Hero should not be affected */
/* Hero section and all its children should not be affected by prose/entry-content background rules */
/* This must come after the parent theme's rule to override it with higher specificity */
.prose .landing-hero-modern,
.prose .landing-hero-modern *,
.prose .landing-hero-modern *::before,
.prose .landing-hero-modern *::after,
.entry-content .landing-hero-modern,
.entry-content .landing-hero-modern *,
.entry-content .landing-hero-modern *::before,
.entry-content .landing-hero-modern *::after,
.single-blog-content .landing-hero-modern,
.single-blog-content .landing-hero-modern *,
.single-blog-content .landing-hero-modern *::before,
.single-blog-content .landing-hero-modern *::after {
    /* Reset background to allow hero's own styles to work */
    background: revert !important;
    background-color: revert !important;
    background-image: revert !important;
}

/* Override prose/entry-content rules for hero slider and all its elements */
.prose .hero-before-after-container,
.prose .hero-before-after-container *,
.prose .hero-before-after-wrapper,
.prose .hero-before-after-wrapper *,
.prose .hero-slider-handle,
.prose .hero-slider-handle *,
.prose .hero-slider-label-left,
.prose .hero-slider-label-left *,
.prose .hero-slider-label-right,
.prose .hero-slider-label-right *,
.prose .hero-before-image,
.prose .hero-before-image *,
.prose .hero-after-image,
.prose .hero-after-image *,
.entry-content .hero-before-after-container,
.entry-content .hero-before-after-container *,
.entry-content .hero-before-after-wrapper,
.entry-content .hero-before-after-wrapper *,
.entry-content .hero-slider-handle,
.entry-content .hero-slider-handle *,
.entry-content .hero-slider-label-left,
.entry-content .hero-slider-label-left *,
.entry-content .hero-slider-label-right,
.entry-content .hero-slider-label-right *,
.entry-content .hero-before-image,
.entry-content .hero-before-image *,
.entry-content .hero-after-image,
.entry-content .hero-after-image *,
.single-blog-content .hero-before-after-container,
.single-blog-content .hero-before-after-container *,
.single-blog-content .hero-before-after-wrapper,
.single-blog-content .hero-before-after-wrapper *,
.single-blog-content .hero-slider-handle,
.single-blog-content .hero-slider-handle *,
.single-blog-content .hero-slider-label-left,
.single-blog-content .hero-slider-label-left *,
.single-blog-content .hero-slider-label-right,
.single-blog-content .hero-slider-label-right *,
.single-blog-content .hero-before-image,
.single-blog-content .hero-before-image *,
.single-blog-content .hero-after-image,
.single-blog-content .hero-after-image * {
    background: revert !important;
    background-color: revert !important;
    background-image: revert !important;
}

/* Ensure hero section itself maintains its background */
.landing-hero-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%) !important;
    background-color: #ffffff !important;
}

/* Ensure slider handle maintains its primary color - Inherit from parent theme */
.hero-slider-handle,
.prose .hero-slider-handle,
.entry-content .hero-slider-handle,
.single-blog-content .hero-slider-handle {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
}

/* Ensure slider labels maintain their background from site color and black text - Inherit from parent theme */
.hero-slider-label-left > div,
.hero-slider-label-right > div,
.prose .hero-slider-label-left > div,
.prose .hero-slider-label-right > div,
.entry-content .hero-slider-label-left > div,
.entry-content .hero-slider-label-right > div,
.single-blog-content .hero-slider-label-left > div,
.single-blog-content .hero-slider-label-right > div {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
    color: var(--color-button-text, #000000) !important;
}

/* Ensure slider circle maintains its colors from site variables - Inherit from parent theme */
.hero-slider-handle > div:first-child > div:first-child,
.prose .hero-slider-handle > div:first-child > div:first-child,
.entry-content .hero-slider-handle > div:first-child > div:first-child,
.single-blog-content .hero-slider-handle > div:first-child > div:first-child {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
}

.hero-slider-handle > div:first-child > div:nth-child(2),
.prose .hero-slider-handle > div:first-child > div:nth-child(2),
.entry-content .hero-slider-handle > div:first-child > div:nth-child(2),
.single-blog-content .hero-slider-handle > div:first-child > div:nth-child(2) {
    background-color: var(--color-primary) !important;
    background: var(--color-primary) !important;
}

/* Hero Button Background Color - Site Primary Color - Inherit from parent theme */
.landing-hero-modern .hero-buttons-slide .hero-primary-button,
.landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.prose .landing-hero-modern .hero-buttons-slide .hero-primary-button,
.prose .landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.entry-content .landing-hero-modern .hero-buttons-slide .hero-primary-button,
.entry-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.single-blog-content .landing-hero-modern .hero-buttons-slide .hero-primary-button,
.single-blog-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button {
    background: var(--color-primary) !important;
    background-color: var(--color-primary) !important;
    background-image: none !important;
    color: var(--color-button-text, #000000) !important; /* Black text on yellow background */
}

/* Hero Button Text and Icon - Inherit from parent theme button text color */
.landing-hero-modern .hero-buttons-slide .hero-primary-button,
.landing-hero-modern .hero-buttons-slide .hero-primary-button span,
.landing-hero-modern .hero-buttons-slide .hero-primary-button svg,
.landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.landing-hero-modern .hero-buttons-slide a.hero-primary-button span,
.landing-hero-modern .hero-buttons-slide a.hero-primary-button svg,
.prose .landing-hero-modern .hero-buttons-slide .hero-primary-button,
.prose .landing-hero-modern .hero-buttons-slide .hero-primary-button span,
.prose .landing-hero-modern .hero-buttons-slide .hero-primary-button svg,
.prose .landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.prose .landing-hero-modern .hero-buttons-slide a.hero-primary-button span,
.prose .landing-hero-modern .hero-buttons-slide a.hero-primary-button svg,
.entry-content .landing-hero-modern .hero-buttons-slide .hero-primary-button,
.entry-content .landing-hero-modern .hero-buttons-slide .hero-primary-button span,
.entry-content .landing-hero-modern .hero-buttons-slide .hero-primary-button svg,
.entry-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.entry-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button span,
.entry-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button svg,
.single-blog-content .landing-hero-modern .hero-buttons-slide .hero-primary-button,
.single-blog-content .landing-hero-modern .hero-buttons-slide .hero-primary-button span,
.single-blog-content .landing-hero-modern .hero-buttons-slide .hero-primary-button svg,
.single-blog-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button,
.single-blog-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button span,
.single-blog-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button svg {
    color: var(--color-button-text, #000000) !important; /* Black text on yellow background */
    fill: var(--color-button-text, #000000) !important;
}

.landing-hero-modern .hero-buttons-slide .hero-primary-button:hover,
.landing-hero-modern .hero-buttons-slide a.hero-primary-button:hover,
.prose .landing-hero-modern .hero-buttons-slide .hero-primary-button:hover,
.prose .landing-hero-modern .hero-buttons-slide a.hero-primary-button:hover,
.entry-content .landing-hero-modern .hero-buttons-slide .hero-primary-button:hover,
.entry-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button:hover,
.single-blog-content .landing-hero-modern .hero-buttons-slide .hero-primary-button:hover,
.single-blog-content .landing-hero-modern .hero-buttons-slide a.hero-primary-button:hover {
    background: var(--color-primary-dark) !important;
    background-color: var(--color-primary-dark) !important;
    background-image: none !important;
}

/* Override all prose/entry-content rules for hero images */
.prose .hero-before-image img,
.prose .hero-after-image img,
.entry-content .hero-before-image img,
.entry-content .hero-after-image img,
.single-blog-content .hero-before-image img,
.single-blog-content .hero-after-image img {
    background: revert !important;
    background-color: revert !important;
    background-image: revert !important;
    opacity: revert !important;
    display: revert !important;
    visibility: revert !important;
}

/* Override prose/entry-content rules for hero text content */
.prose .hero-text-content,
.prose .hero-text-content *,
.entry-content .hero-text-content,
.entry-content .hero-text-content *,
.single-blog-content .hero-text-content,
.single-blog-content .hero-text-content * {
    background: revert !important;
    background-color: revert !important;
    background-image: revert !important;
    color: revert !important;
}

/* Override prose/entry-content rules for hero container */
.prose .hero-before-after-container,
.entry-content .hero-before-after-container,
.single-blog-content .hero-before-after-container {
    background-color: #f3f4f6 !important; /* gray-100 */
    background: #f3f4f6 !important;
}

/* lg:px-8 kuralını kaldır - Tailwind CSS override */
@media (min-width: 1024px) {
    /* Tailwind CSS'te lg:px-8 compile edildiğinde .lg\:px-8 olur */
    .lg\:px-8,
    [class*="lg:px-8"],
    [class*="lg\\:px-8"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Blog sayfaları ve tüm bloklar için mobil padding - px-4 yerine px-2 */
@media (max-width: 1024px) {
    /* Entry content genel padding */
    .entry-content,
    .single-blog-content,
    .prose {
        padding-left: 0.5rem !important; /* px-2 = 0.5rem */
        padding-right: 0.5rem !important; /* px-2 = 0.5rem */
    }
    
    /* Tüm bloklardaki px-4 class'larını mobilde px-2 yap */
    [class*="px-4"] {
        padding-left: 0.5rem !important; /* px-2 */
        padding-right: 0.5rem !important; /* px-2 */
    }
    
    /* Container'lar için özel override */
    .container[class*="px-4"],
    .container.mx-auto[class*="px-4"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Entry content içindeki tüm container'lar */
    .entry-content .container,
    .single-blog-content .container,
    .entry-content .container.mx-auto,
    .single-blog-content .container.mx-auto {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

/* Prevent scroll box in landing sections - Override prose/entry-content overflow */
.landing-section,
.neden-biz-section,
.prose .landing-section,
.prose .neden-biz-section,
.entry-content .landing-section,
.entry-content .neden-biz-section,
.single-blog-content .landing-section,
.single-blog-content .neden-biz-section {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.landing-section *,
.neden-biz-section *,
.prose .landing-section *,
.prose .neden-biz-section *,
.entry-content .landing-section *,
.entry-content .neden-biz-section *,
.single-blog-content .landing-section *,
.single-blog-content .neden-biz-section * {
    overflow: visible !important;
    max-height: none !important;
}

