/* ==========================================
   HUZEL CNC - Ana Stil Dosyası
   Renk Paleti: Koyu Mavi, Kırmızı, Gri
   ========================================== */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2a43;
    --primary-light: #2c5f8a;
    --accent: #c0392b;
    --accent-light: #e74c3c;
    --accent-dark: #962d22;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-900: #212529;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; }

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar-site {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.top-info span {
    margin-right: 20px;
    display: inline-block;
}

.top-info i {
    margin-right: 5px;
    color: var(--accent-light);
}

.social-links-top a {
    color: rgba(255,255,255,0.7);
    margin-left: 12px;
    font-size: 14px;
    transition: var(--transition);
}

.social-links-top a:hover { color: var(--white); transform: scale(1.2); }

/* ==========================================
   NAVBAR
   ========================================== */
.main-nav {
    padding: 12px 0;
    transition: var(--transition);
}

.nav-logo { max-height: 83px; }

.brand-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.text-accent { color: var(--accent) !important; }

.main-nav .nav-link {
    color: var(--gray-700);
    font-weight: 500;
    padding: 8px 16px !important;
    position: relative;
    font-size: 15px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary);
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.main-nav .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 10px;
}

.main-nav .dropdown-item {
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
}

.main-nav .dropdown-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
}

.btn-whatsapp:hover {
    background: #1da851;
    color: white !important;
    transform: translateY(-2px);
}

/* ==========================================
   HERO SLIDER
   ========================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,42,67,0.85) 0%, rgba(26,58,92,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 650px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span { color: var(--accent-light); }

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-no-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
}

.hero-no-slider h1 { font-size: 3rem; font-weight: 800; }
.hero-no-slider h1 span { color: var(--accent-light); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary-custom {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192,57,43,0.3);
}

.btn-outline-custom {
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-block;
    background: transparent;
}

.btn-outline-custom:hover {
    background: white;
    color: var(--primary);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section-padding { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title h2 span { color: var(--accent); }

.section-title p {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto;
    border-radius: 2px;
}

/* ==========================================
   FEATURES / NEDEN BİZ
   ========================================== */
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    transform: rotateY(180deg);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.feature-card p { color: var(--gray-500); font-size: 14px; }

/* ==========================================
   PRODUCT CARDS
   ========================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-image .category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-card .product-image .featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
}

.product-card .product-info {
    padding: 20px;
}

.product-card .product-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.product-card .product-info p {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .product-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.product-card .product-meta span { margin-right: 12px; }
.product-card .product-meta i { color: var(--accent); margin-right: 3px; }

.product-card .btn-detail {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--gray-100);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border-top: 1px solid var(--gray-200);
}

.product-card .btn-detail:hover {
    background: var(--primary);
    color: white;
}

/* ==========================================
   CATEGORY CARDS
   ========================================== */
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.category-card .cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    overflow: hidden;
}

.category-card .cat-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

.category-card p { color: var(--gray-500); font-size: 13px; }

/* ==========================================
   BLOG CARDS
   ========================================== */
.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card .blog-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
}

.blog-card .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-card .blog-body {
    padding: 20px;
}

.blog-card .blog-date {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.blog-card .blog-body h5 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-body p {
    color: var(--gray-500);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .blog-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-500);
    display: flex;
    justify-content: space-between;
}

/* ==========================================
   BRANDS SLIDER
   ========================================== */
.brands-section {
    background: var(--gray-100);
    padding: 60px 0;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 10px 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
}

/* ==========================================
   PAGE HEADERS
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
    color: white;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a { color: rgba(255,255,255,0.7); }
.page-header .breadcrumb-item a:hover { color: white; }
.page-header .breadcrumb-item.active { color: var(--accent-light); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ==========================================
   PRODUCT DETAIL
   ========================================== */
.product-detail-image {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
}

.product-detail-image img {
    width: 100%;
    object-fit: contain;
    max-height: 450px;
}

.product-detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-detail-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.product-detail-thumbs img:hover,
.product-detail-thumbs img.active {
    border-color: var(--accent);
}

.product-specs {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: 20px;
}

.product-specs table td {
    padding: 10px 15px;
}

.product-specs table td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 40%;
}

/* ==========================================
   BLOG DETAIL
   ========================================== */
.blog-detail .blog-header-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 30px;
    max-height: 400px;
}

.blog-detail .blog-header-image img {
    width: 100%;
    object-fit: cover;
}

.blog-detail .blog-content {
    font-size: 16px;
    line-height: 1.8;
}

.blog-detail .blog-content h2 { margin-top: 30px; color: var(--primary); }
.blog-detail .blog-content h3 { margin-top: 25px; color: var(--primary-light); }
.blog-detail .blog-content img { border-radius: 8px; margin: 20px 0; }

/* ==========================================
   CONTACT / ABOUT PAGES
   ========================================== */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card .icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
}

.contact-form-card .form-control {
    border-radius: 10px;
    border: 1px solid var(--gray-300);
    padding: 12px 18px;
}

.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26,58,92,0.15);
}

.about-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    height: 100%;
}

.about-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.about-card .icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.cta-section h2 { font-size: 2rem; font-weight: 700; }
.cta-section p { opacity: 0.85; font-size: 1.1rem; max-width: 600px; margin: 15px auto 30px; }

/* ==========================================
   SIDEBAR
   ========================================== */
.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-widget h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { margin-bottom: 8px; }
.sidebar-widget ul li a {
    color: var(--gray-700);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-widget ul li a:hover { color: var(--accent); }
.sidebar-widget ul li a .count { color: var(--gray-500); font-size: 13px; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.site-footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-logo { max-height: 50px; filter: brightness(0) invert(1); }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: var(--transition);
}
.footer-links li a:hover { color: white; padding-left: 5px; }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-contact li i {
    color: var(--accent-light);
    margin-right: 8px;
    width: 16px;
}
.footer-contact li a { color: rgba(255,255,255,0.7); }
.footer-contact li a:hover { color: white; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    margin-right: 8px;
    transition: var(--transition);
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0,0,0,0.15);
    padding: 15px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wp 2s infinite;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

@keyframes pulse-wp {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}

/* ==========================================
   CAMPAIGN MODAL
   ========================================== */
.campaign-modal {
    background: transparent;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination .page-link {
    color: var(--primary);
    border-radius: 8px !important;
    margin: 0 3px;
    border: 1px solid var(--gray-200);
}

.pagination .page-link:hover { background: var(--primary); color: white; }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); }

/* ==========================================
   SEARCH BOX
   ========================================== */
.search-box {
    position: relative;
}

.search-box input {
    padding-right: 50px;
    border-radius: 50px;
    border: 2px solid var(--gray-200);
    padding: 10px 20px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    border: none;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .main-nav .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        margin-top: 10px;
    }
    .btn-whatsapp { margin: 10px 0; display: block; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-no-slider h1 { font-size: 2.2rem; }
}

@media (max-width: 767px) {
    .top-bar-site { display: none; }
    .hero-slide { min-height: 350px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-no-slider { min-height: 350px; }
    .hero-no-slider h1 { font-size: 1.8rem; }
    .section-title h2 { font-size: 1.8rem; }
    .section-padding { padding: 50px 0; }
    .page-header { padding: 30px 0; }
    .page-header h1 { font-size: 1.6rem; }
}

/* ==========================================
   SWIPER CUSTOMIZATION
   ========================================== */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.3);
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after { font-size: 18px !important; }

.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-tabs a {
    padding: 8px 20px;
    border-radius: 25px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Counter Animation */
.counter-section {
    background: var(--primary);
    padding: 50px 0;
    color: white;
}

.counter-item { text-align: center; }
.counter-item h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; }
.counter-item h3 span { color: var(--accent-light); }
.counter-item p { opacity: 0.8; font-size: 14px; }
