/* ====================================
   Product Detail Page - Modern Design
   ==================================== */

/* Hero Section */
.product-detail-page {
  background: #f8f9fa;
  min-height: 100vh;
}

.product-hero {
  background: linear-gradient(135deg, #293b83 0%, #1a2555 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.product-hero::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.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Product Logo in Hero */
.product-logo-wrapper {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  background: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.product-logo-wrapper:hover {
  transform: scale(1.05);
}

.product-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
}

.product-logo-placeholder i {
  font-size: 64px;
  color: #388e3c;
}

/* Hero Info */
.hero-info {
  flex: 1;
  color: #fff;
}

.product-categories-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.category-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.category-tag:hover {
  background: #fff;
  color: #293b83;
  transform: translateY(-2px);
}

.product-title-hero {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-company {
  margin-top: 15px;
}

.company-link-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.1);
  padding: 10px 20px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.company-link-hero:hover {
  background: rgba(255,255,255,0.2);
  transform: translateX(5px);
  color: #fff;
}

.company-mini-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

/* Detail Cards */
.detail-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.detail-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-bottom: 1px solid #eee;
}

.detail-card-header i {
  font-size: 24px;
  color: #293b83;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-radius: 12px;
}

.detail-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.detail-card-body {
  padding: 25px;
}

.content-text {
  color: #555;
  line-height: 1.8;
  font-size: 15px;
  white-space: pre-wrap;
}

/* BIG Items Grid */
.big-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.big-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 12px;
  text-decoration: none;
  color: #e65100;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #ffcc80;
}

.big-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230,81,0,0.2);
  color: #e65100;
}

.big-item-card i {
  font-size: 20px;
}

/* Sidebar Sticky Wrapper */
.sidebar-sticky-wrapper {
  position: sticky;
  top: 100px;
}

/* Sidebar Cards */
.sidebar-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #293b83 0%, #1a2555 100%);
  color: #fff;
}

.sidebar-card-header i {
  font-size: 18px;
}

.sidebar-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

/* Company Sidebar */
.company-header-sidebar {
  text-align: center;
  padding: 25px 20px;
  border-bottom: 1px solid #eee;
}

.company-logo-sidebar {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
}

.company-logo-placeholder-sm {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.company-logo-placeholder-sm i {
  font-size: 32px;
  color: #999;
}

.company-name-sidebar {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* Contact Info */
.company-contact-info {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 10px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-item:last-child {
  margin-bottom: 0;
}

a.contact-item:hover {
  background: #e3f2fd;
  color: #1976d2;
}

.contact-item i {
  font-size: 16px;
  color: #293b83;
  width: 20px;
  text-align: center;
}

.contact-item span {
  flex: 1;
  word-break: break-word;
}

/* Company Stats Sidebar */
.company-stats-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background: #f8f9fa;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: #e8eaf6;
  transform: translateY(-3px);
}

.stat-box i {
  font-size: 22px;
  color: #293b83;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #293b83;
}

.stat-text {
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* View Company Button */
.btn-view-company {
  display: block;
  margin: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #293b83 0%, #1a2555 100%);
  color: #fff;
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-view-company:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41,59,131,0.3);
  color: #fff;
}

/* Quick Actions */
.quick-actions {
  padding: 20px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-btn:last-child {
  margin-bottom: 0;
}

.quick-action-btn:hover {
  background: #e3f2fd;
  border-color: #90caf9;
  color: #1976d2;
}

.quick-action-btn i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .product-logo-wrapper {
    width: 150px;
    height: 150px;
  }
  
  .product-title-hero {
    font-size: 2rem;
  }
  
  .product-categories-hero {
    justify-content: center;
  }
  
  .sidebar-card {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .product-hero {
    padding: 40px 0;
  }
  
  .product-logo-wrapper {
    width: 120px;
    height: 120px;
    padding: 15px;
  }
  
  .product-title-hero {
    font-size: 1.5rem;
  }
  
  .hero-content {
    gap: 25px;
  }
  
  .company-stats-sidebar {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
  }
  
  .stat-box {
    padding: 10px 5px;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .big-items-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-card-header {
    padding: 15px 20px;
  }
  
  .detail-card-body {
    padding: 20px;
  }
}

/* Print Styles */
@media print {
  /* Genel ayarlar */
  body {
    background: #fff !important;
  }
  
  .product-detail-page {
    background: #fff !important;
  }
  
  /* Hero bölümü - basit hale getir */
  .product-hero,
  .service-hero,
  .training-hero {
    background: #f5f5f5 !important;
    padding: 30px 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .product-hero::before {
    display: none;
  }
  
  .product-title-hero {
    color: #333 !important;
    font-size: 1.5rem !important;
  }
  
  .category-tag {
    background: #eee !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
  }
  
  .company-link-hero {
    background: transparent !important;
    border: none !important;
    color: #333 !important;
  }
  
  /* Logo wrapper */
  .product-logo-wrapper {
    box-shadow: none !important;
    border: 1px solid #ddd;
  }
  
  /* Kartlar */
  .detail-card,
  .sidebar-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
  }
  
  .detail-card-header,
  .sidebar-card-header {
    background: #f5f5f5 !important;
    color: #333 !important;
  }
  
  .detail-card-header i,
  .sidebar-card-header i {
    background: transparent !important;
    color: #333 !important;
  }
  
  /* Hızlı eylemler gizle */
  .sidebar-card:last-child,
  .quick-actions,
  .quick-action-btn {
    display: none !important;
  }
  
  /* Sticky kaldır */
  .sidebar-sticky-wrapper {
    position: static !important;
  }
  
  /* İstatistikler */
  .stat-box {
    border: 1px solid #ddd !important;
    background: #f9f9f9 !important;
  }
  
  .stat-box i,
  .stat-number {
    color: #333 !important;
  }
  
  /* Butonlar gizle */
  .btn-view-company {
    display: none !important;
  }
  
  /* Link renkleri */
  a {
    color: #333 !important;
    text-decoration: none !important;
  }
  
  /* Sayfa kenar boşlukları */
  @page {
    margin: 1cm;
  }
}

/* ====================================
   Service Detail Page - Özel Stiller
   ==================================== */

.service-hero {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.service-placeholder i {
  color: #1565c0;
}

.service-tag {
  border-color: rgba(255,255,255,0.4);
}

.service-header i,
.service-sidebar-header {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.service-header i {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.service-stat i,
.service-stat .stat-number {
  color: #1565c0;
}

.service-btn {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.service-btn:hover {
  box-shadow: 0 6px 20px rgba(21,101,192,0.3);
}

/* ====================================
   Training Detail Page - Özel Stiller
   ==================================== */

.training-hero {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.training-placeholder i {
  color: #2e7d32;
}

.training-tag {
  border-color: rgba(255,255,255,0.4);
}

.training-sidebar-header {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.training-header i {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.training-stat i,
.training-stat .stat-number {
  color: #2e7d32;
}

.training-btn {
  background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.training-btn:hover {
  box-shadow: 0 6px 20px rgba(46,125,50,0.3);
}

/* Training Info Grid */
.training-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.training-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.training-info-item i {
  font-size: 28px;
  color: #2e7d32;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f5e9;
  border-radius: 12px;
}

.training-info-item .info-content {
  display: flex;
  flex-direction: column;
}

.training-info-item .info-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.training-info-item .info-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

@media (max-width: 575.98px) {
  .training-info-grid {
    grid-template-columns: 1fr;
  }
}

