/* Products Page Styles - Index ile Tutarlı Modern Tasarım */

/* Products Section - Index tarzında */
.products-main-section {
  padding: 8rem 0;
  background: white;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* Hero Section - About hero tarzında */
.products-hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: white;
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.products-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hero-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-grid)"/></svg>');
  opacity: 0.3;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  color: white !important;
}

.hero-description {
  font-size: 1.3rem;
  opacity: 0.95;
  position: relative;
  z-index: 2;
  color: white !important;
}

/* 2x4 Main Products Grid */
.products-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-main-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  height: 100%;
}

.product-main-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-15px);
  border-color: var(--primary-color);
}

.product-main-card.active {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-xl);
  transform: translateY(-10px);
}

.product-main-card.empty {
  background: transparent;
  border: 2px dashed #e2e8f0;
  opacity: 0.3;
  pointer-events: none;
  cursor: default;
}

.product-main-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-main-image i {
  font-size: 4rem;
  color: white;
  opacity: 0.9;
}

.product-main-card.active .product-main-image {
  background: linear-gradient(135deg, #1E40AF, #60A5FA);
}

.product-main-content {
  padding: 2rem;
  text-align: center;
}

.product-main-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-main-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-count-badge {
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Sub Products Section - Accordion Style */
.sub-products-section {
  background: #f8fafc;
  border-radius: var(--border-radius-lg);
  padding: 3rem 0;
  margin: 3rem 0;
  display: none;
  border: 1px solid #e2e8f0;
  position: relative;
}

.sub-products-section.active {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

.sub-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

/* Yukarı Çık Butonu */
.back-to-top {
  position: absolute;
  top: 1rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 10;
}

.back-to-top:hover {
  background: #1E40AF;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top i {
  font-size: 1.2rem;
}

/* 3'lü Grid Düzeni Alt Ürünler için */
.sub-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Sub Product Cards */
.sub-product-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid transparent;
  height: 100%;
  cursor: pointer;
}

.sub-product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-15px);
  border-color: var(--primary-color);
}

.sub-product-content {
  padding: 2rem;
  text-align: center;
}

.sub-product-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.sub-product-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sub-product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.spec-tag {
  background: rgba(30, 58, 138, 0.08);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Modal Styles - Eşit hizalı özellikler */
.modal-header {
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-title {
  color: var(--text-dark);
  font-weight: 700;
}

.modal-body {
  padding: 2.5rem;
  background: white;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
}

/* Eşit Hizalı Spesifikasyon Tablosu */
.specs-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  table-layout: fixed;
}

.specs-table th,
.specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  word-wrap: break-word;
}

.specs-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
  width: 40%;
}

.specs-table td {
  color: var(--text-light);
  font-size: 0.9rem;
  width: 60%;
}

.specs-table tbody tr:hover {
  background: #f9fafb;
}

.product-features-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.product-features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
}

.product-features-list li:last-child {
  border-bottom: none;
}

.product-features-list li i {
  color: #10B981;
  margin-right: 0.75rem;
  font-size: 0.9rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.sub-product-card {
  animation: slideIn 0.3s ease-out;
}

/* Loading states */
.product-main-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.product-main-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility */
.product-main-card:focus,
.sub-product-card:focus,
.back-to-top:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2.4rem;
  }
  
  .products-main-grid {
    gap: 1.5rem;
  }
  
  .sub-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 992px) {
  .products-main-grid {
    grid-template-columns: 1fr;
  }
  
  .product-main-card.empty {
    display: none;
  }
  
  .sub-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .products-main-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .sub-products-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .product-main-content {
    padding: 1.5rem;
  }
  
  .sub-product-content {
    padding: 1.5rem;
  }
  
  .products-hero {
    padding: 6rem 0 4rem;
  }
  
  .products-main-section {
    padding: 4rem 0;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .product-main-image {
    height: 160px;
  }
  
  .product-main-image i {
    font-size: 3rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .back-to-top {
    top: 0.5rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .product-main-title {
    font-size: 1.2rem;
  }
  
  .sub-section-title {
    font-size: 1.6rem;
  }
  
  .spec-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  
  .product-main-content {
    padding: 1rem;
  }
  
  .sub-product-content {
    padding: 1rem;
  }
  
  .specs-table th,
  .specs-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
}