/* === TenderHouse Ukazka — Brand Styles === */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand-blue: #1B3A5C;
  --brand-blue-light: #2A5580;
  --gray-bg: #F2F3F4;
  --white: #FFFFFF;
  --text-black: #2D2D2D;
  --text-dark: #444444;
  --text-gray: #777777;
  --border-gray: #D8DADC;
  --error-red: #D32F2F;
  --error-bg: #FDECEA;
  --success-green: #2E7D32;
  --success-bg: #EDF7ED;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gray-bg);
  color: var(--text-black);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: -0.5px;
}

.header-sub {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* Main card */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 8px;
}

.card .desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Form */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.req {
  color: var(--error-red);
}

.opt {
  font-weight: 400;
  color: var(--text-gray);
}

input[type="url"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-black);
  transition: border-color 0.2s;
  font-family: inherit;
  margin-bottom: 20px;
}

input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #B0B4B8;
}

textarea {
  resize: vertical;
  min-height: 72px;
}

/* Button */
button#btn-generate {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 4px;
}

button#btn-generate:hover {
  background: var(--brand-blue-light);
}

button#btn-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Status / Loading */
.status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  background: var(--gray-bg);
  border-radius: 8px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status p {
  font-size: 14px;
  color: var(--text-dark);
}

/* Messages */
.error {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--error-bg);
  color: var(--error-red);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.success {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--success-bg);
  color: var(--success-green);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-gray);
  margin-top: auto;
  padding-top: 32px;
}

.footer a {
  color: var(--brand-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 24px 12px 16px;
  }
  .card {
    padding: 24px 18px;
  }
  .card h1 {
    font-size: 19px;
  }
  .logo {
    font-size: 26px;
  }
}
