/*
Theme Name: DachDeals V5 (Ultimate Redirect)
Theme URI: https://dachdeals.de
Author: DachDeals AI
Description: V5: Guaranteed Amazon Redirects, Auto-SEO, and Premium UI.
Version: 5.0
*/

:root {
  --bg-dark: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --accent: #FF9900;
  --accent-glow: rgba(255, 153, 0, 0.4);
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* HEADER */
.v3-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  letter-spacing: -1px;
}

.brand-accent {
  color: var(--accent);
}

.v3-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.v3-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.v3-nav a:hover {
  color: #fff;
}

/* HERO */
.hero-v3 {
  padding: 160px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 30%, rgba(255, 153, 0, 0.1), transparent 60%);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: -2px;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* GRID */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* CARD */
.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-thumb {
  position: relative;
  padding-top: 75%;
  /* 4:3 Aspect Ratio */
  background: #fff;
  overflow: hidden;
}

.card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
  transition: transform 0.5s ease;
}

.deal-card:hover .card-thumb img {
  transform: scale(1.05);
}

.badge-discount {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff0055;
  color: #fff;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(255, 0, 85, 0.4);
}

.badge-cat {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  color: #fff;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px;
  line-height: 1.4;
  color: #fff;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
}

.btn-deal {
  background: white;
  color: black;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-deal:hover {
  background: var(--accent);
}

/* SEARCH & FILTERS */
.v3-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

/* PAGINATION */
.pagination {
  text-align: center;
  padding: 40px 0;
}

.page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.page-numbers.current {
  background: var(--accent);
  color: black;
  font-weight: bold;
}