/* =======================================
   Generátor vizitek - EMBED verze pro WordPress
   Bez hlavičky a patičky
   ======================================= */

/* ===== ZÁKLADNÍ NASTAVENÍ ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ===== EMBED MODE - tmavý design ===== */
body.embed-mode {
  background-color: #151b28;
  color: #e5e7eb;
  padding: 20px 0;
  overflow-x: hidden;
}

/* ===== HLAVNÍ OBSAH ===== */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ===== FORMULÁŘ ===== */
.form-section {
  background: #0b0f16;
  color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  border: 1px solid #1e2535;
  padding: 25px;
  width: 100%;
  max-width: 500px;
}

.form-section h2 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="color"],
input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #1e2535;
  background: #111826;
  color: #f1f5f9;
  margin-top: 4px;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

/* ===== TLAČÍTKA ===== */
.btn {
  display: inline-block;
  padding: 10px 18px;
  margin-top: 15px;
  margin-right: 8px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn.primary:hover {
  background: linear-gradient(145deg, #2563eb, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59,130,246,0.5);
}

.btn:not(.primary) {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}

.btn:not(.primary):hover {
  background: #334155;
  transform: translateY(-2px);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== NÁHLED VIZITKY ===== */
.preview-section {
  background: #0b0f16;
  color: #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  border: 1px solid #1e2535;
  padding: 25px;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.preview-section h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: #ffffff;
}

/* ===== VIZITKA ===== */
.card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 15px;
  color: #000;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.left img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #eee;
  object-fit: cover;
}

.right {
  flex: 1;
  text-align: left;
  min-width: 180px;
}

.right h3 {
  color: #1f2937;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.right p {
  color: #4b5563;
  margin: 3px 0;
  font-size: 0.9rem;
}

.contact {
  margin-top: 10px;
}

.contact p {
  font-size: 0.85rem;
  color: #6b7280;
}

.qr-wrap {
  text-align: center;
  margin-top: 10px;
}

.qr-wrap canvas {
  max-width: 150px;
  height: auto;
}

/* ===== RESPONSIVNÍ DESIGN ===== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
  }

  .form-section,
  .preview-section {
    width: 100%;
    max-width: 100%;
    margin: 0 0 20px 0;
    padding: 20px 15px;
  }

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

  .card-inner {
    flex-direction: column;
    align-items: center;
  }

  .right {
    text-align: center;
  }

  .qr-wrap {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .form-section,
  .preview-section {
    padding: 15px 10px;
  }
  
  .btn {
    width: 100%;
    margin-right: 0;
  }
}
