/*
Theme Name: Cardtoria
Theme URI: https://cardtoria.com
Author: Cardtoria
Author URI: https://cardtoria.com
Description: A modern one-page theme for Cardtoria – instant gift card trading platform.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cardtoria
Tags: one-page, custom-logo, custom-colors, featured-images
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #7c3aed;
  --success: #16a34a;
  --success-dark: #15803d;
  --foreground: #1e293b;
  --muted: #64748b;
  --background: #ffffff;
  --secondary-bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 0.75rem;
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
  --shadow-soft: 0 2px 8px rgba(59,130,246,0.1);
  --shadow-medium: 0 4px 16px rgba(59,130,246,0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--success);
  color: #fff;
}
.btn-primary:hover { background: var(--success-dark); }

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); }

.btn-outline-dark {
  background: transparent;
  color: var(--foreground);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); }

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-brand .logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.site-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--foreground);
  transition: color 0.3s;
}
.main-nav a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--primary-dark) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(60px);
}
.hero::before { width: 300px; height: 300px; top: 80px; left: 40px; }
.hero::after { width: 400px; height: 400px; bottom: 80px; right: 40px; }

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content { color: #fff; }
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  position: relative;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 4rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero-card svg {
  width: 180px; height: 180px;
  color: #fff;
  stroke-width: 1.5;
}

/* ===== GIFT CARDS ===== */
.gift-cards { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.25rem;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.card-item {
  padding: 1.5rem;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
}
.card-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.cards-cta { text-align: center; }

/* ===== WHY CHOOSE ===== */
.why-choose {
  padding: 5rem 0;
  background: var(--secondary-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.feature-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--gradient-primary);
  border-radius: 1rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p { color: var(--muted); }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 5rem 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
}

.step-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
}
.step-number {
  position: absolute;
  top: -8px; right: -8px;
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step p { color: var(--muted); }

/* ===== FAQ ===== */
.faq {
  padding: 5rem 0;
  background: var(--secondary-bg);
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--foreground);
  transition: color 0.3s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .chevron {
  transition: transform 0.3s;
  font-size: 1.25rem;
}
.faq-item.active .chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--muted);
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ===== CTA ===== */
.cta-section {
  padding: 5rem 0;
  background: var(--gradient-primary);
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
}

.site-footer h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer ul li {
  margin-bottom: 0.5rem;
}
.site-footer ul li a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}
.site-footer ul li a:hover { color: #fff; }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--background);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-medium);
  }
  .mobile-toggle { display: block; }

  .hero .container { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-visual { display: none; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
