/* Taşdemir Makine - Ana Site Stilleri */
/* Extracted from header.php inline styles */

:root {
    --primary: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --white: #ffffff;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); color: var(--dark); line-height: 1.6; background: var(--white); }

/* Top Bar */
.top-bar { background: var(--secondary); color: rgba(255,255,255,0.85); font-size: 0.85rem; padding: 8px 0; }
.top-bar a { color: rgba(255,255,255,0.85); text-decoration: none; transition: color 0.2s; }
.top-bar a:hover { color: var(--accent); }
.top-bar i { margin-right: 5px; }
.top-bar-contact { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-bar-social { display: flex; gap: 12px; align-items: center; }

/* Navbar */
.navbar { background: var(--white); padding: 12px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; }
.navbar-brand { font-size: 1.5rem; font-weight: 800; color: var(--primary) !important; letter-spacing: -0.5px; }
.navbar-brand:hover { color: var(--primary-dark) !important; }
.navbar-brand .brand-highlight { color: var(--accent); }
.nav-link { color: var(--dark) !important; font-weight: 500; padding: 8px 16px !important; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 8px; padding: 8px 0; }
.dropdown-item { padding: 8px 20px; font-size: 0.9rem; }
.dropdown-item:hover { background: var(--gray-lighter); color: var(--primary); }

/* Search */
.navbar-search { max-width: 300px; }
.navbar-search .form-control { border-radius: 20px; border: 1px solid var(--gray-light); padding: 6px 16px; font-size: 0.9rem; }
.navbar-search .form-control:focus { box-shadow: 0 0 0 3px rgba(30,64,175,0.15); border-color: var(--primary); }

/* Buttons */
.btn-primary { background: var(--primary); border: none; padding: 10px 24px; font-weight: 600; border-radius: 8px; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(30,64,175,0.3); }
.btn-accent { background: var(--accent); color: var(--dark); border: none; padding: 12px 28px; font-weight: 700; border-radius: 8px; }
.btn-accent:hover { background: #d97706; color: var(--dark); transform: translateY(-1px); }
.btn-outline-primary { border: 2px solid var(--primary); color: var(--primary); padding: 8px 20px; font-weight: 600; border-radius: 8px; }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }

/* Hero */
.hero-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 3rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.9; margin-bottom: 32px; max-width: 600px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stat { text-align: center; }
.hero-stat-number { font-size: 2.5rem; font-weight: 900; }
.hero-stat-label { font-size: 0.9rem; opacity: 0.8; }

/* Hero Slider (carousel) */
.hero-slider-section { position: relative; }
.hero-slider-section .carousel { position: relative; }
.hero-slider-section .carousel-item { min-height: 420px; }
.hero-slide { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); color: var(--white); padding: 80px 0; position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-slide .container { position: relative; z-index: 1; }
.hero-slider-section .carousel-indicators { margin-bottom: 1rem; }
.hero-slider-section .carousel-indicators button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); background: transparent; opacity: 1; }
.hero-slider-section .carousel-indicators button.active { background: var(--white); border-color: var(--white); }
.hero-slider-section .carousel-control-prev-icon, .hero-slider-section .carousel-control-next-icon { background-color: rgba(0,0,0,0.3); border-radius: 50%; padding: 20px; background-size: 50%; }
.hero-stats-section { background: var(--primary-dark); color: var(--white); padding: 30px 0; }
.hero-stats-section .hero-stats { margin-top: 0; justify-content: space-around; }
@media (max-width: 768px) {
    .hero-slider-section .carousel-item, .hero-slide { min-height: 360px; padding: 50px 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats-section .hero-stats { gap: 20px; flex-wrap: wrap; justify-content: center; }
}

/* Product Cards */
.product-card { border: 1px solid var(--gray-light); border-radius: 12px; overflow: hidden; background: var(--white); transition: all 0.3s ease; margin-bottom: 24px; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); border-color: var(--primary-light); }
.product-card .card-img-wrapper { position: relative; background: var(--gray-lighter); padding: 20px; text-align: center; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.product-card .card-img-wrapper img { max-height: 160px; max-width: 100%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .card-img-wrapper img { transform: scale(1.05); }
.product-card .card-body { padding: 20px; }
.product-card .product-name { font-size: 1rem; font-weight: 600; color: var(--dark); margin-bottom: 8px; line-height: 1.3; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-name a { color: inherit; text-decoration: none; }
.product-card .product-name a:hover { color: var(--primary); }
.product-card .product-brand { font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.product-card .product-category { font-size: 0.75rem; color: var(--primary-light); background: rgba(59,130,246,0.1); padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 10px; }
.product-card .product-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.product-card .product-stock { font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }
.product-card .product-stock.in-stock { color: var(--success); }
.product-card .product-stock.out-of-stock { color: var(--danger); }

/* Breadcrumb */
.breadcrumb-section { background: var(--gray-lighter); padding: 15px 0; }
.breadcrumb { margin-bottom: 0; background: transparent; padding: 0; }
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--secondary); color: rgba(255,255,255,0.85); padding: 60px 0 0; }
.footer h5 { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--accent); }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item i { color: var(--accent); margin-top: 4px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { display: flex; align-items: center; gap: 6px; }
.footer-links li a::before { content: '›'; font-weight: 700; }
.footer-bottom { background: rgba(0,0,0,0.3); padding: 20px 0; margin-top: 40px; text-align: center; font-size: 0.85rem; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); transition: all 0.2s; }
.footer-social a:hover { background: var(--accent); color: var(--dark); }

/* WhatsApp Float Button */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 28px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 9999; transition: all 0.3s; text-decoration: none; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); color: white; }
.whatsapp-float-tooltip { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: white; color: var(--dark); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; }

/* Phone Float Button */
.phone-float { position: fixed; bottom: 24px; left: 24px; width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 26px; box-shadow: 0 4px 20px rgba(30,64,175,0.4); z-index: 9999; transition: all 0.3s; text-decoration: none; animation: pulse-phone 2s infinite; }
.phone-float:hover { transform: scale(1.1); color: white; }
.phone-float-tooltip { position: absolute; left: 70px; top: 50%; transform: translateY(-50%); background: white; color: var(--dark); padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.15); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.phone-float:hover .phone-float-tooltip { opacity: 1; }
@keyframes pulse-phone { 0%, 100% { box-shadow: 0 4px 20px rgba(30,64,175,0.4); } 50% { box-shadow: 0 4px 30px rgba(30,64,175,0.6); } }

/* Sections */
.section { padding: 60px 0; }
.section-light { background: var(--gray-lighter); }
.section-title { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.section-subtitle { color: var(--gray); font-size: 1.1rem; margin-bottom: 40px; }
.section-header { text-align: center; margin-bottom: 40px; }

/* Category Cards */
.category-card { background: var(--white); border-radius: 12px; padding: 30px 20px; text-align: center; border: 1px solid var(--gray-light); transition: all 0.3s; height: 100%; }
.category-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(30,64,175,0.1); transform: translateY(-3px); }
.category-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 16px; }
.category-card h5 { font-weight: 700; margin-bottom: 8px; }
.category-card .count { color: var(--gray); font-size: 0.85rem; }

/* Features */
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(30,64,175,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.feature-content h6 { font-weight: 700; margin-bottom: 4px; }
.feature-content p { color: var(--gray); font-size: 0.9rem; margin: 0; }

/* Pagination */
.pagination .page-link { color: var(--primary); border: 1px solid var(--gray-light); padding: 8px 14px; }
.pagination .page-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active .page-link { background: var(--primary); border-color: var(--primary); }

/* Page Headers */
.page-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: var(--white); padding: 40px 0; }
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { opacity: 0.85; font-size: 1.1rem; }

/* Forms */
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,64,175,0.15); }

/* Content pages */
.page-content { max-width: 900px; margin: 0 auto; }

/* Sidebar */
.sidebar { background: var(--gray-lighter); border-radius: 12px; padding: 24px; }
.sidebar h5 { font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }
.sidebar-filter { list-style: none; padding: 0; margin: 0; }
.sidebar-filter li { margin-bottom: 6px; }
.sidebar-filter li a { display: flex; justify-content: space-between; align-items: center; color: var(--dark); text-decoration: none; padding: 6px 8px; border-radius: 6px; transition: background 0.2s; }
.sidebar-filter li a:hover { background: var(--white); color: var(--primary); }
.sidebar-filter li a.active { background: var(--white); color: var(--primary); font-weight: 600; }
.sidebar-filter .badge { background: var(--gray-light); color: var(--gray); }

/* Pages */
.page-content { max-width: 900px; margin: 0 auto; }

/* Product Detail Page */
.product-detail-img { background: var(--gray-lighter); border-radius: 12px; padding: 30px; text-align: center; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.product-detail-img img { max-width: 100%; max-height: 350px; object-fit: contain; }
.product-detail-gallery { display: flex; gap: 8px; margin-top: 12px; }
.product-detail-gallery img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.product-detail-gallery img:hover, .product-detail-gallery img.active { border-color: var(--primary); }
.specs-table { width: 100%; }
.specs-table td { padding: 8px 12px; font-size: 0.9rem; }
.specs-table tr:nth-child(odd) { background: var(--gray-lighter); }
.specs-table td:first-child { font-weight: 600; color: var(--gray); width: 200px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 1.8rem; }
    .top-bar-contact { justify-content: center; gap: 12px; }
    .top-bar-social { justify-content: center; margin-top: 6px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.5rem; }
    .product-detail-img { min-height: 250px; }
}
