/*
Theme Name: X-Treme Series WordPress Theme
Theme URI: https://www.x-tremeseries.com
Description: Professional WordPress theme for X-Treme Series dehumidification cabinets. Fully compatible with Elementor page builder and multilingual ready.
Version: 1.0.0
Author: X-Treme Series
Author URI: https://www.x-tremeseries.com
Text Domain: xtreme-series
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: business, industrial, responsive, elementor, multilingual, custom-post-types

X-Treme Series WordPress Theme, Copyright 2024 X-Treme Series
X-Treme Series WordPress Theme is distributed under the terms of the GNU GPL
*/

/* Import existing styles */
@import url('./assets/css/style.css');

/* Additional WordPress specific styles */
.wp-block-image {
    margin: 0 0 1em 0;
}

.wp-block-image img {
    height: auto;
    max-width: 100%;
}

/* Elementor compatibility */
.elementor-widget-container {
    word-wrap: break-word;
}

/* WordPress Gutenberg support */
.has-large-font-size {
    font-size: 2.25em;
}

.has-medium-font-size {
    font-size: 1.25em;
}

.has-small-font-size {
    font-size: 0.875em;
}


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

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress alignment classes */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* WordPress gallery styles */
.gallery {
    margin: auto;
}

.gallery .gallery-item {
    float: left;
    margin-top: 10px;
    text-align: center;
}

.gallery img {
    border: 2px solid #cfcfcf;
}

.gallery .gallery-caption {
    margin-left: 0;
}

/* Sticky post styles */
.sticky {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
}

.elementor-content
{
	padding: 0px !important;
}

.e-con-inner
{
	padding-bottom: 0px !important;
	padding-top: 0px !important;
}

/* Contact Form 7 CSS */
.contact-form-wrapper {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 0 auto;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #171717;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

p:has(> span[data-name="kvkk"]) {
    display: flex; 
	align-items: center;
}

.wpcf7-form-control-wrap[data-name="kvkk"] {
    margin-bottom: 0 !important;
	margin-right: 20px;
}

.wpcf7-list-item
{
	margin-bottom: 0px !important;
}

.form-checkbox
{
	margin-bottom: 5px !important;
}

.contact-form-wrapper p:has(.wpcf7-form-control-wrap[data-name="kvkk"]) {
    margin-bottom: 20px;
	max-height: 25px;
}

/* Form elementlerinin genel görünümü */
.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1.5rem;
	padding-top: 20px;
}

/* Input ve textarea stilleri */
.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #2563eb;
}

.form-textarea {
    resize: none;
    font-family: inherit;
}

/* Checkbox stili */
.wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.7rem;
}

.form-checkbox {
    margin: 4px 0 0 0;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.wpcf7-list-item-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    margin: 0;
}

/* Submit butonu */
.form-submit {
    width: 100%;
    background: #e31e24;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
    font-size: 16px;
}

.form-submit:hover {
    background: #bd161b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Error mesajları */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.wpcf7-validation-errors {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Success mesajı */
.wpcf7-mail-sent-ok {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-form-wrapper h2 {
        font-size: 1.25rem;
    }
}

/* Loading durumu için spinner */
.wpcf7-form.submitting .form-submit {
    position: relative;
    color: transparent;
}

.wpcf7-form.submitting .form-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wpcf7 form {
    margin: auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wpcf7 input, .wpcf7 select, .wpcf7 textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.wpcf7 input[type="submit"] {
    background: #e31e24;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wpcf7 input[type="submit"]:hover {
    background: #bd161b;
}

.onaykutu .wpcf7-list-item label
{
	display: flex;
	align-items: center;
	gap: 7px;
}

.onaykutu input
{
	width: auto !important;
	margin-bottom: 0px !important;
}


.datasheet-form-popup {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.datasheet-form-popup .popup-inner {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
}

.datasheet-form-popup .form-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.datasheet-form-popup label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.datasheet-form-popup input,
.datasheet-form-popup select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.datasheet-form-popup .wpcf7-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.hero-swiper-pagination .swiper-pagination-bullet
{
	background-color: #1818184d !important;
}

.hero-swiper-pagination .swiper-pagination-bullet-active
{
	background-color: #e31b1b !important;
}

.references-swiper-pagination .swiper-pagination-bullet-active
{
	background-color: #000000 !important;
}

.reg-symbol {
    font-size: 0.75em;
    vertical-align: super;
}

/* Video Background Slide Styles */
.video-slide video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Video overlay for better contrast */
.video-slide .absolute.inset-0:last-child {
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Ensure video content is above overlay */
.video-slide > .relative.z-10 {
    z-index: 10;
}

/* Mobile video optimization */
@media (max-width: 768px) {
    .video-slide video {
        /* Mobile'da video boyutunu optimize et */
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Video loading state */
.video-slide video:not([data-loaded="true"]) {
    opacity: 0;
}

.video-slide video[data-loaded="true"] {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Video pause/play controls (hidden by default) */
.video-slide video::-webkit-media-controls {
    display: none;
}

.video-slide video::-webkit-media-controls-enclosure {
    display: none;
}

/* Firefox */
.video-slide video::-moz-media-controls {
    display: none;
}

/* IE/Edge */
.video-slide video::-ms-media-controls {
    display: none;
}

/* Preload indicator for video slides */
.video-slide.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation: spin 1s ease-in-out infinite;
    z-index: 15;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

#toplevel_page_copy-delete-posts, #toplevel_page_wpshapere-options
{
	display: none;
}

#wpadminbar, #wpadminbar .menupop .ab-sub-wrapper, .ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu
{
	background: #000 !important;
}

/* ========================================
   MODERN SEARCH PAGE STYLES
   ======================================== */

/* Search Filters */
.search-filters {
    background: #f8f9fa;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.filter-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #e31e24;
    color: #e31e24;
    background: #fff5f5;
}

.filter-btn.active {
    background: #e31e24;
    border-color: #e31e24;
    color: #ffffff;
}

/* Search Result Items */
.search-result-item {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-result-item:hover {
    border-color: #e31e24;
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.15);
    transform: translateY(-2px);
}

.search-result-item.no-image {
    padding-top: 24px;
}

.search-result-item.has-image .image-container {
    margin: -24px -24px 20px -24px;
    overflow: hidden;
}

.search-result-item.has-image .image-container img {
    transition: transform 0.3s ease;
}

.search-result-item:hover .image-container img {
    transform: scale(1.05);
}

/* Image Placeholder */
.image-placeholder {
    height: 192px; /* Same height as h-48 (12rem = 192px) */
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -24px -24px 20px -24px;
    overflow: hidden;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.placeholder-content i {
    font-size: 32px;
    color: #adb5bd;
}

.placeholder-content span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.post-type-badge {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-type-page {
    background: #e3f2fd;
    color: #1976d2;
}

.post-type-news {
    background: #f3e5f5;
    color: #7b1fa2;
}

.post-type-products {
    background: #e8f5e8;
    color: #388e3c;
}


/* Read More Button */
.read-more-btn {
    background: #e31e24;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background: #c41e3a;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

/* Modern Pagination */
.modern-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.modern-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
}

.modern-pagination-links .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
}

.modern-pagination .nav-links
{
	display: flex;
}

.modern-pagination-links .page-numbers:hover {
    border-color: #e31e24;
    color: #e31e24;
    background: #fff5f5;
}

.modern-pagination-links .page-numbers.current {
    background: #e31e24;
    border-color: #e31e24;
    color: #ffffff;
}

.modern-pagination-links .page-numbers.prev,
.modern-pagination-links .page-numbers.next {
    padding: 0 16px;
    font-weight: 600;
}

.modern-pagination-links .page-numbers.prev i,
.modern-pagination-links .page-numbers.next i {
    margin: 0 4px;
}

/* Enhanced Search Form */
.search-form-wrapper {
    display: flex;
    background: #ffffff;
    border: 2px solid #e9ecef;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-form-wrapper:focus-within {
    border-color: #e31e24;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-input::placeholder {
    color: #6c757d;
}

.search-submit-btn {
    background: #e31e24;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-submit-btn:hover {
    background: #c41e3a;
}

.search-submit-btn i {
    font-size: 16px;
}

/* No Results State */
.no-results-icon {
    opacity: 0.6;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .search-filters {
        padding: 16px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .search-result-item {
        padding: 20px;
    }
    
    .search-result-item.has-image .image-container {
        margin: -20px -20px 16px -20px;
    }
    
    .image-placeholder {
        margin: -20px -20px 16px -20px;
        height: 160px;
    }
    
    .placeholder-content i {
        font-size: 24px;
    }
    
    .placeholder-content span {
        font-size: 11px;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .modern-pagination-links .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .search-form-wrapper {
        flex-direction: column;
    }
    
    .search-submit-btn {
        padding: 12px 20px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .search-filters .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .search-filters .flex > span {
        margin-bottom: 8px;
    }
    
    .modern-pagination-links {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        padding: 0 10px;
        justify-content: flex-start;
    }
    
    .modern-pagination-links .page-numbers {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Persistent hero height controlled by CSS variable */
:root {
    --header-height: 115px;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: calc(100vh - 25vh) !important;
    min-height: calc(100vh - 25vh) !important;
}

/* Ensure background video in video-slide respects height */
.video-slide > .absolute > video {
    height: calc(100vh - 25vh) !important;
    min-height: calc(100vh - 25vh) !important;
}

.sticky-bolum {
  position: sticky;
  top: 0; /* Üstten ne kadar boşluk bırakacağını ayarlarsın */
  z-index: 1000;
}

.js .tmce-active .wp-editor-area
{
	color: #000 !important;
}