/* 
 * Packages Page Styles
 * Premium Apple-Style Design
 * 
 * Bu dosya theme.css'deki değişkenleri kullanmaktadır
 */

/* Özel paket sayfası değişkenleri */
:root {
  /* Özel paket renkleri */
  --color-accent: #ff9500;
  /* Aşağıdaki değişkenler artık theme.css'ten alınacak */
  /*
  --font-hero: 4rem;
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 10px;
  */
  --radius-circle: 50%;
}

/* Animasyonlar */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient-text {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes subtle-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s var(--bezier-smooth) forwards;
}

/* Genel Stil Sıfırlama */
section {
  padding: var(--space-xxl) 0;
}

/* Hero Bölümü */
.packages-hero {
  position: relative;
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, rgba(0, 85, 179, 0.9), rgba(255, 217, 61, 0.85), rgba(0, 122, 255, 0.6), rgba(45, 75, 105, 0.9));
  background-size: 300% auto;
  color: var(--color-white);
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  min-height: 50vh;
  animation: gradient-shift 16s ease infinite;
}

.packages-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  z-index: 1;
}

.packages-hero .container {
  position: relative;
  z-index: 2;
}

.packages-hero h1 {
  font-size: clamp(2.5rem, 7vw, var(--font-hero));
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-l);
  background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff, #e0e0e0);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: fadeIn 1s var(--bezier-smooth) forwards, gradient-text 8s ease infinite 1s;
}

.packages-hero p {
  font-size: var(--font-l);
  margin: 0 auto var(--space-xl);
  max-width: 600px;
  opacity: 0;
  animation: fadeIn 1s var(--bezier-smooth) 0.3s forwards;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-s) var(--space-l);
  border-radius: var(--radius-l);
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  margin-top: var(--space-m);
  animation: pulse 2.5s infinite;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: fadeIn 1s var(--bezier-smooth) 0.6s forwards, pulse 2.5s infinite 1s;
}

/* Fiyat Hesaplayıcı Bölümü */
.pricing-calculator {
  padding: var(--space-xl);
  background-color: var(--color-white);
  text-align: center;
  border-radius: var(--radius-l);
  margin-top: -50px;
  margin-bottom: var(--space-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  z-index: 10;
  position: relative;
  backdrop-filter: blur(var(--blur-size));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--color-white), var(--color-white)), 
                 linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.pricing-calculator h2 {
  margin-bottom: var(--space-xl);
  background: linear-gradient(135deg, var(--color-dark-theme), var(--color-primary), var(--color-secondary), var(--color-dark-theme));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 6s ease infinite;
}

.duration-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.duration-option {
  position: relative;
  padding: var(--space-m) var(--space-l);
  border-radius: var(--radius-m);
  background-color: var(--color-light);
  border: 1.5px solid transparent;
  color: var(--color-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal) var(--bezier-smooth);
  min-width: 120px;
}

.duration-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.duration-option.active {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.25);
}

.discount-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: var(--font-xs);
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 3px 8px;
  border-radius: var(--radius-s);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 149, 0, 0.3);
}

/* Paket Kartları */
.packages-grid-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(180deg, var(--color-light) 0%, #ffffff 100%);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.package-card {
  background-color: var(--color-white);
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal) var(--bezier-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-gray-light);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.8s var(--bezier-smooth) forwards;
  animation-delay: calc(0.1s * var(--animation-order, 0));
}

/* Her paket kartı için animasyon sırası belirle */
.package-card:nth-child(1) { --animation-order: 1; }
.package-card:nth-child(2) { --animation-order: 2; }
.package-card:nth-child(3) { --animation-order: 3; }

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.package-card.featured {
  border: 2px solid transparent;
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 122, 255, 0.15);
  z-index: 2;
  background-image: linear-gradient(var(--color-white), var(--color-white)), 
                 linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.package-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: 12px;
  right: 0;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--font-xs);
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
  letter-spacing: 0.5px;
}

.package-header {
  padding: var(--space-l);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary), var(--color-dark-theme));
  background-size: 200% auto;
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: gradient-shift 5s ease infinite;
}

.package-header::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  bottom: -80px;
  left: -25%;
  border-radius: 50%;
}

.package-header h3 {
  font-size: var(--font-xl);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.price-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: var(--space-s);
}

.price {
  font-size: var(--font-xxl);
  font-weight: 700;
  line-height: 1;
}

.duration {
  font-size: var(--font-s);
  opacity: 0.8;
  margin-left: var(--space-xs);
}

.package-body {
  padding: var(--space-l);
  flex-grow: 1;
}

.package-description {
  font-size: var(--font-m);
  color: var(--color-gray);
  margin-bottom: var(--space-l);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-light);
  padding-bottom: var(--space-l);
}

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

.features-list li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-s);
  padding: var(--space-xs) 0;
  transition: all var(--transition-fast) ease;
}

.features-list li:hover {
  transform: translateX(3px);
}

.feature-icon {
  width: 16px;
  height: 16px;
  margin-right: var(--space-s);
  color: var(--color-success);
  flex-shrink: 0;
}

.package-footer {
  padding: var(--space-l);
  background-color: var(--color-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.package-footer .btn {
  width: 100%;
}

.package-btn-pricing {
  padding: var(--space-m) var(--space-xl);
  border-radius: var(--radius-m);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-normal) var(--bezier-bounce);
  cursor: pointer;
  border: none;
  outline: none;
  font-size: var(--font-s);
  width: 100%;
  display: block;
  background-size: 200% auto;
}

.cta-section .btn-pricing-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark), var(--color-dark-theme));
  background-size: 200% auto;
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
  animation: gradient-shift 5s ease infinite;
}

.cta-section .btn-pricing-secondary {
  background: linear-gradient(135deg, var(--color-white), var(--color-light));
  background-size: 200% auto;
  color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
  animation: subtle-shift 5s ease infinite;
}

/* Karşılaştırma Tablosu */
.comparison-section {
  background-color: var(--color-white);
  padding: var(--space-xxl) 0;
  position: relative;
}

.comparison-section h2 {
  text-align: center;
  margin-bottom: var(--space-s);
  background: linear-gradient(135deg, var(--color-dark-theme), var(--color-primary), var(--color-secondary), var(--color-dark-theme));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-text 6s ease infinite;
}

.comparison-section p {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-gray);
  margin-left: auto;
  margin-right: auto;
}

.comparison-table-container {
  overflow-x: auto;
  max-width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-l);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-size));
  border: 1px solid var(--glass-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-m);
  text-align: center;
  border-bottom: 1px solid var(--color-gray-light);
}

.comparison-table th {
  background-color: rgba(0, 122, 255, 0.05);
  font-weight: 600;
  font-size: var(--font-m);
  position: sticky;
  top: 0;
  box-shadow: 0 1px 0 var(--color-gray-light);
  z-index: 1;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.comparison-table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.01);
}

.comparison-table tr:hover {
  background-color: rgba(0, 122, 255, 0.03);
}

.check-icon {
  width: 20px;
  height: 20px;
  color: var(--color-success);
}

.times-icon {
  width: 20px;
  height: 20px;
  color: var(--color-danger);
  opacity: 0.5;
}

/* Kullanıcı Yorumları Bölümü */
.testimonials-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.05), rgba(0, 122, 255, 0.05));
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.2), rgba(90, 200, 250, 0));
  top: -100px;
  left: -100px;
  border-radius: 50%;
}

.testimonials-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.1), rgba(0, 122, 255, 0));
  bottom: -100px;
  right: -100px;
  border-radius: 50%;
}

.testimonials-section h2 {
  text-align: center;
  margin-bottom: var(--space-s);
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonials-section p {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-gray);
  margin-left: auto;
  margin-right: auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-l);
  padding: 0 var(--space-m);
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-size));
  border-radius: var(--radius-l);
  padding: var(--space-l);
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal) var(--bezier-smooth);
  opacity: 0;
  animation: fadeIn 0.8s var(--bezier-smooth) forwards;
  animation-delay: calc(0.2s * var(--animation-order, 0));
}

.testimonial-card:nth-child(1) { --animation-order: 1; }
.testimonial-card:nth-child(2) { --animation-order: 2; }
.testimonial-card:nth-child(3) { --animation-order: 3; }

.testimonial-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -15px;
  left: var(--space-l);
  font-size: 80px;
  color: var(--color-primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  font-size: var(--font-m);
  line-height: 1.6;
  margin-bottom: var(--space-l);
  color: var(--color-dark);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  font-size: var(--font-m);
  margin-right: var(--space-m);
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: var(--font-m);
}

.author-title {
  font-size: var(--font-xs);
  color: var(--color-gray);
  margin-top: 2px;
}

/* SSS Bölümü */
.faq-section {
  padding: var(--space-xxl) 0;
  background-color: var(--color-white);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-s);
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-section p {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-gray);
  margin-left: auto;
  margin-right: auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: var(--space-m);
  background: var(--color-light);
  border-radius: var(--radius-m);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s var(--bezier-smooth) forwards;
  animation-delay: calc(0.1s * var(--animation-order, 0));
}

.faq-item:nth-child(1) { --animation-order: 1; }
.faq-item:nth-child(2) { --animation-order: 2; }
.faq-item:nth-child(3) { --animation-order: 3; }
.faq-item:nth-child(4) { --animation-order: 4; }
.faq-item:nth-child(5) { --animation-order: 5; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: var(--font-m);
  font-weight: 600;
  padding: var(--space-l);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast) ease;
  color: var(--color-dark);
}

.faq-question:hover {
  background-color: rgba(0, 122, 255, 0.03);
}

.faq-question[aria-expanded="true"] {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform var(--transition-normal) var(--bezier-bounce);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-l);
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--transition-normal) var(--bezier-smooth);
}

.faq-answer p {
  padding: var(--space-m) 0 var(--space-l);
  margin: 0;
  text-align: left;
  color: var(--color-gray);
  font-size: var(--font-s);
  line-height: 1.6;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  height: auto;
  opacity: 1;
}

/* CTA Bölümü */
.cta-section {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 15%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 15%);
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: var(--font-xxl);
  margin-bottom: var(--space-m);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-section p {
  font-size: var(--font-l);
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-m);
}

.cta-section .btn-primary {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.cta-section .btn-primary:hover {
  background-color: var(--color-light);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.35);
}

.cta-section .btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.cta-section .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* JavaScript İçin Stiller */
.faq-answer {
  display: none;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
  :root {
    --font-hero: 3.5rem;
    --font-xxl: 2.2rem;
    --font-xl: 1.5rem;
  }
  
  .duration-options {
    flex-wrap: wrap;
  }
  
  .package-card.featured {
    transform: scale(1.01);
  }
  
  .package-card.featured:hover {
    transform: scale(1.03) translateY(-5px);
  }
}

@media (max-width: 992px) {
  :root {
    --space-xxl: 3rem;
    --space-xl: 2rem;
  }
  
  .packages-hero {
    min-height: 40vh;
  }
  
  .packages-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .pricing-calculator {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  :root {
    --font-hero: 2.5rem;
    --font-xxl: 2rem;
    --space-xxl: 2.5rem;
  }
  
  .packages-hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }
  
  .pricing-calculator {
    margin-top: -30px;
  }
  
  .duration-option {
    flex-basis: calc(50% - var(--space-m));
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .package-card.featured {
    transform: none;
  }
  
  .package-card.featured:hover {
    transform: translateY(-5px);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-s);
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 576px) {
  :root {
    --space-l: 1rem;
    --space-xl: 1.5rem;
    --font-l: 1.1rem;
  }
  
  .duration-options {
    flex-direction: column;
    gap: var(--space-s);
  }
  
  .duration-option {
    width: 100%;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-s);
    font-size: var(--font-s);
  }
}