/* FontReport - Home Page Styles */

/* Home-specific variables */
:root {
  --card: #0f1522;
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.25);
}

/* Override body font size for home page */
body {
  font-size: 16px;
}

/* Hero Section */
.hero {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  padding: 0 20px 40px 20px;
  position: relative;
}

.hero-inner {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.00));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 10px 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero p {
  margin: 0 0 26px 0;
  color: var(--muted);
  max-width: 58ch;
}

/* Scanner Animation */
.scanner {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 58%;
  background: 
    radial-gradient(40% 180% at 50% 50%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
    linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  filter: drop-shadow(0 0 10px rgba(140,198,63,.55)) drop-shadow(0 0 18px rgba(140,198,63,.35));
  animation: sweep 3.2s ease-in-out infinite;
  opacity: .85;
  display: none;
}

.scanner.active {
  display: block;
}

@keyframes sweep {
  0% { top: 20%; }
  50% { top: 78%; }
  100% { top: 20%; }
}

/* Form Styles */
.form {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
  align-items: end;
}

.btn {
  grid-column: 1 / 3;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.label {
  font-size: 12px;
  color: var(--muted);
}

input[type="text"], 
input[type="url"], 
input[type="number"] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  outline: none;
  transition: border .15s, box-shadow .15s;
}

input#limit {
  width: 80px;
  max-width: 80px;
}

input::placeholder {
  color: #6b7280;
}

input:focus {
  border-color: #334155;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

/* HP field - appears normal to bots but invisible to users */
.field-verify {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Backup method in case bots check for common HP classes */
.input-backup {
    position: absolute;
    top: -10000px;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Home page specific button styles */
.hero .btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 18px;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  letter-spacing: .2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px rgba(140,198,63,.25), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .05s ease, filter .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero .btn:hover {
  filter: brightness(1.05);
}

.hero .btn:active {
  transform: translateY(1px);
}

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

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.help a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

.help a:hover {
  color: var(--accent);
}

/* Feature Cards */
.features {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  background: var(--panel-2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 16px 16px 18px 16px;
  min-height: 110px;
}

.card h3 {
  margin: 6px 0 6px 0;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.emoji {
  font-size: 18px;
  margin-right: 6px;
}

/* Loading States */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: rgba(255,255,255,.8);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.timer {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 4px;
}

/* Notification Bar */
.notification {
  position: fixed;
  top: -100px;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(239,68,68,.25);
  z-index: 1000;
  transition: top .3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.notification.show {
  top: 0;
}

.notification-message {
  flex: 1;
  text-align: center;
}

.notification-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.notification-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Payment key tab */
.payment-tab {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 6px 6px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-tab.slide-up {
    transform: translateY(-30px);
}

.payment-tab .close-btn {
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    opacity: 0.8;
    margin-left: 4px;
}

.payment-tab .close-btn:hover {
    opacity: 1;
}

.payment-tab:hover {
    background: var(--panel);
    border-bottom:1px solid var(--stroke);
    border-right:1px solid var(--stroke);
    border-left:1px solid var(--stroke); 
}

.payment-tab.authenticated {
    background: #4981a5;
    border-bottom:1px solid var(--stroke);
    border-right:1px solid var(--stroke);
    border-left:1px solid var(--stroke); 
}

/* Payment overlay form */
.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--panel);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 42px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 5;
    display: none;
    box-sizing: border-box;
}

.payment-overlay p {
    color: var(--muted);
    margin: 0 0 24px 0;
    max-width: 58ch;
}

.payment-overlay p strong {
  color:#fff;
}

.payment-overlay a {
  color: var(--accent);
}

.payment-overlay a:hover {
  color: #fff;
}

.payment-overlay label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.payment-overlay.active {
    transform: translateY(0);
    display: block;
}

.payment-overlay.active {
    transform: translateY(0);
}

.payment-overlay h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.payment-overlay .form-group {
    margin-bottom: 15px;
}

.payment-overlay input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--stroke);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
}

.payment-overlay .button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.payment-overlay button {
    padding: 8px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.scan-panel {
    position: relative;
    overflow: visible;
}

/* Responsive Design */
@media (max-width: 980px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .form {
    grid-template-columns: 80px 1fr;
  }
  
  .field:first-child {
    grid-column: 1 / 3;
  }
  
  .btn {
    grid-column: 2 / 3;
  }
  
  .hero h1 {
    font-size: 32px;
  }
}