/*
Theme Name: PreisScanner
Theme URI: https://preisscanner.de
Author: PreisScanner.de
Author URI: https://preisscanner.de
Description: Custom theme for PreisScanner.de - Price tracking and alerts
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: preisscanner
*/

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-outline {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: #fff;
}

.btn-success {
  background: #22c55e;
  color: #fff;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-danger {
  background: #fee2e2;
  color: #dc2626;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Header */
.site-header {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #2563eb;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: #2563eb;
}

.hero-content .subtitle {
  font-size: 20px;
  color: #64748b;
  margin-bottom: 30px;
}

.hero-features {
  list-style: none;
  margin-bottom: 40px;
}

.hero-features li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  font-size: 18px;
  color: #475569;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
  font-size: 20px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  text-align: center;
}

.hero-placeholder {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.hero-placeholder .mock-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-placeholder .mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e7eb;
}

.hero-placeholder .mock-row {
  display: flex;
  align-items: center;
  padding: 15px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 10px;
}

.hero-placeholder .mock-product {
  flex: 1;
  height: 12px;
  background: #d1d5db;
  border-radius: 4px;
}

.hero-placeholder .mock-price {
  width: 60px;
  height: 12px;
  background: #22c55e;
  border-radius: 4px;
  margin-left: 20px;
}

/* How it works */
.how-it-works {
  padding: 100px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 60px;
  color: #1e293b;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step {
  text-align: center;
  padding: 40px 30px;
  border-radius: 16px;
  background: #f8fafc;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.step-number {
  width: 60px;
  height: 60px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 25px;
}

.step h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #1e293b;
}

.step p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

/* Why Section */
.why-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
}

.why-section .section-title {
  color: #fff;
}

.why-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.why-content p {
  font-size: 20px;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.why-content strong {
  color: #60a5fa;
}

.savings-badge {
  display: inline-block;
  background: #22c55e;
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 24px;
  font-weight: 700;
  margin-top: 30px;
}

/* Pricing */
.pricing {
  padding: 100px 0;
  background: #f8fafc;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
  border-color: #2563eb;
  transform: translateY(-5px);
}

.pricing-card.featured {
  border-color: #2563eb;
  position: relative;
}

.pricing-card.featured::before {
  content: "Beliebt";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #1e293b;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: #2563eb;
  margin: 20px 0;
}

.pricing-card .price span {
  font-size: 18px;
  color: #64748b;
  font-weight: 400;
}

.pricing-card .savings {
  background: #dcfce7;
  color: #166534;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: #475569;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
  padding: 16px;
}

/* Footer */
.site-footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand .site-logo {
  color: #fff;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-brand p {
  line-height: 1.7;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 16px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 12px;
}

.site-footer ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer ul a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

/* Dashboard Styles */
.dashboard-header-bar {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8f0;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 14px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
}

.dashboard {
  padding: 40px 0;
  background: #f1f5f9;
  min-height: 80vh;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.dashboard-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.product-count {
  color: #64748b;
  font-size: 14px;
  margin-top: 5px;
}

.subscription-card {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 12px;
  padding: 24px;
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subscription-info h3 {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 5px;
}

.subscription-info .plan {
  font-size: 20px;
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
}

.stat-card h3 {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
}

.stat-card.highlight .value {
  color: #22c55e;
}

.products-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.products-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.products-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th {
  text-align: left;
  padding: 14px 24px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.products-table td {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.products-table tr:hover {
  background: #f8fafc;
}

.product-name {
  font-weight: 600;
  color: #1e293b;
}

.product-shop {
  font-size: 13px;
  color: #94a3b8;
}

.price {
  font-weight: 600;
  font-size: 16px;
}

.price.current {
  color: #1e293b;
}

.price.target {
  color: #2563eb;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.status-badge.watching {
  background: #fef3c7;
  color: #d97706;
}

.status-badge.reached {
  background: #dcfce7;
  color: #16a34a;
}

.status-badge.expensive {
  background: #fee2e2;
  color: #dc2626;
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  margin-bottom: 30px;
}

.form-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
}

.form-hint {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

/* Empty State */
.empty-state {
  padding: 80px 40px;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}

.empty-state h3 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 10px;
}

.empty-state p {
  color: #64748b;
  margin-bottom: 24px;
}

/* Result Cards */
.result-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #22c55e;
  overflow: hidden;
}

.result-header {
  background: #dcfce7;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-header h3 {
  font-size: 18px;
  color: #166534;
}

.result-body {
  padding: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.result-label {
  color: #64748b;
  font-size: 14px;
}

.result-value {
  font-weight: 600;
  color: #1e293b;
}

.error-card {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #ef4444;
  overflow: hidden;
}

.error-header {
  background: #fee2e2;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-header h3 {
  font-size: 18px;
  color: #991b1b;
}

.error-body {
  padding: 24px;
}

/* Responsive */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-features {
    display: inline-block;
    text-align: left;
  }

  .hero-buttons {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .subscription-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .main-nav {
    display: none;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .form-actions {
    flex-direction: column;
  }
}
