
/* =========================================
   YOUTUBE PAGE SPECIFIC STYLES ONLY
   (Global CSS handles base layout)
========================================= */


/* HERO OVERRIDE (YouTube Branding) */
.hero {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
}


/* TOOL TITLE */
.card h2 {
  margin-bottom: 10px;
  font-size: 22px;
}


/* LABELS */
label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}


/* INPUT ENHANCEMENT */
input, select {
  transition: 0.2s;
}

input:focus,
select:focus {
  border-color: #ff0000;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,0,0,0.1);
}


/* RESULT CARDS (for income/shorts pages) */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}


/* RESULT CARD SAFE */
.result-card {
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  background: #eef2ff;
  transition: 0.3s;
  min-width: 0; /* prevents overflow */
}
.result-card h3 {
  font-size: 14px;
}

.result-card p {
  font-size: 14px;
  word-wrap: break-word;
}


.result-card:hover {
  transform: translateY(-3px);
}

.result-card:nth-child(2) {
  background: #ff0000;
  color: white;
}


/* INSIGHT */
#insight {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

/* CHART CONTAINER */
canvas {
  margin-top: 20px;
}


/* SEO CONTENT */
.content h2 {
  margin-top: 30px;
}

.content h3 {
  margin-top: 20px;
}

.content p {
  color: #444;
}
/* CHART FIX */
.chart-box {
  width: 100%;
  overflow-x: auto;
}

canvas {
  max-width: 100%;
  height: auto !important;
}


/* =========================================
   MOBILE IMPROVEMENTS
========================================= */

@media (max-width: 768px) {

  .results {
    flex-direction: column;
  }

  .result-card {
    width: 100%;
  }

  .card h2 {
    font-size: 18px;
  }
  .container {
    padding: 0 16px; /* breathing space */
  }
   label {
    font-size: 14px;
  }

}