/**
 * KPSS Rehberi - Modern Web Sitesi Stil Dosyası
 */

:root {
  --primary-color: #0ea5e9;
  --primary-dark: #0284c7;
  --secondary-color: #06b6d4;
  --accent-color: #8b5cf6;
  --dark-color: #1e293b;
  --light-color: #f0f9ff;
  --text-color: #334155;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(14, 165, 233, 0.05);
  --shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(14, 165, 233, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(14, 165, 233, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 2rem;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

/* Navbar */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand img {
  padding: 8px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand:hover img {
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.5);
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0284c7 100%);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0891b2 100%);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #0891b2 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Download Badges */
.download-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.download-badge {
  display: inline-block;
  transition: transform 0.3s ease;
}

.download-badge:hover {
  transform: scale(1.05);
}

.download-badge img {
  height: 60px;
  width: auto;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--light-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  margin: 1rem auto;
  border-radius: 2px;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(5deg);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.feature-description {
  color: var(--text-color);
  line-height: 1.8;
}

/* Screenshots Slider */
.screenshots-section {
  padding: 80px 0;
  background: white;
}

.screenshots-slider {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.screenshots-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
  scrollbar-width: none; /* Firefox */
}

.screenshots-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.screenshot-item {
  flex: 0 0 280px;
  transition: transform 0.3s ease;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.screenshot-item:hover {
  transform: translateY(-5px);
}

.screenshot-item:hover img {
  box-shadow: var(--shadow-xl);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.slider-btn i {
  color: #ffffff !important;
  font-size: 1.25rem;
}

.slider-btn i::before {
  color: #ffffff !important;
}

.slider-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-50%) scale(1.1);
}

.slider-btn:hover i {
  color: #ffffff !important;
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

@media (max-width: 768px) {
  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .screenshot-item {
    flex: 0 0 220px;
  }
}

/* Premium Section */
.premium-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.premium-section::before {
  content: "💎";
  position: absolute;
  font-size: 20rem;
  opacity: 0.05;
  right: -5rem;
  top: 50%;
  transform: translateY(-50%);
}

.pricing-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
  transition: all 0.3s ease;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.pricing-card.featured {
  border-color: var(--accent-color);
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.pricing-badge {
  background: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
}

.pricing-currency {
  font-size: 1.5rem;
  opacity: 0.9;
}

.pricing-period {
  font-size: 1rem;
  opacity: 0.8;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: var(--light-color);
}

.accordion-item {
  border: none;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-weight: 600;
  color: var(--dark-color);
  background: white;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: white;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.accordion-body {
  padding: 1.5rem;
  background: white;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: white;
}

.contact-form {
  background: var(--light-color);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.form-control,
.form-select {
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer h5 img {
  padding: 6px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.footer a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  text-decoration: none;
  color: white;
}

.social-link i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.social-link i::before {
  margin-left: 10px;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.social-link:hover i {
  transform: translateX(2px);
  color: #f1f1f1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Loading Spinner */
.loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.spinner {
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Alert Messages */
.alert {
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border: none;
}

.alert-success {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border-left: 4px solid var(--secondary-color);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-left: 4px solid #dc2626;
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top:hover {
  background: var(--dark-color);
  transform: translateY(-5px);
}

.scroll-top.show {
  display: flex;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-section {
    padding: 60px 0 40px;
  }

  .features-section,
  .screenshots-section,
  .premium-section,
  .faq-section,
  .contact-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .download-badges {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card.featured {
    transform: scale(1);
    margin-bottom: 2rem;
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.shadow-custom {
  box-shadow: var(--shadow-xl);
}
