/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #0f172a;
  color: #e5e7eb;
}

/* LAYOUT */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #38bdf8;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #cbd5f5;
  font-weight: 500;
}

nav a.active,
nav a:hover {
  color: #38bdf8;
}

/* HERO */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #020617, #020617);
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.hero p {
  color: #94a3b8;
  margin-bottom: 24px;
}

.actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.primary {
  background: #38bdf8;
  color: #020617;
}

.secondary {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section h2,
.section h1 {
  margin-bottom: 24px;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* TREND CARD */
.trend-card {
  background: #020617;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

.trend-card h3 {
  margin-bottom: 8px;
}

.badge {
  font-size: 12px;
  color: #22c55e;
}

/* TREND LIST */
.trend-list .trend-row {
  display: flex;
  justify-content: space-between;
  padding: 14px;
  margin-bottom: 10px;
  background: #020617;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid #1e293b;
  color: #64748b;
}

/* TOOLS PAGE */
.tool-card {
  display: block;
  background: #020617;
  border: 1px solid #1e293b;
  padding: 22px;
  border-radius: 12px;
  text-decoration: none;
  color: #e5e7eb;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 10px 30px rgba(56,189,248,0.15);
  color: #38bdf8;
}

/* MUTED TEXT */
.muted {
  color: #94a3b8;
  margin-bottom: 30px;
}

/* INPUTS & TEXTAREA */
input, textarea {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 15px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #38bdf8;
}

/* BUTTON FIX */
button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: #38bdf8;
  color: #020617;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button.secondary {
  margin-top: 10px;
  background: transparent;
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.tabs button {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.tabs .active {
  background: #000;
  color: #fff;
}

.trend-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  background: #eee;
}

.source {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 10px;
  background: #f5f5f5;
}

/* ===========================
   GOOGLE-TRENDS STYLE LIST
   =========================== */

.trend-list-header {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  padding: 12px 14px;
  margin-bottom: 10px;
  color: #94a3b8;
  font-size: 13px;
  border-bottom: 1px solid #1e293b;
}

.trend-list {
  display: flex;
  flex-direction: column;
}

.trend-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  align-items: center;
  padding: 14px;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: background 0.2s ease;
}

.trend-row:hover {
  background: #020617;
  border-color: #38bdf8;
}

.trend-topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trend-title {
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
}

.trend-source {
  font-size: 12px;
  color: #64748b;
}

.trend-volume,
.trend-started {
  font-size: 14px;
  color: #e5e7eb;
  text-align: right;
}

/* MOBILE */
@media (max-width: 640px) {
  .trend-list-header {
    display: none;
  }

  .trend-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trend-volume,
  .trend-started {
    text-align: left;
    font-size: 13px;
    color: #94a3b8;
  }
}

/* ===== GOOGLE TRENDS DESKTOP (5 COLUMN) ===== */

.trends-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}

.trends-header h1 {
  font-size: 22px;
}

.trends-cols {
  display: grid;
  grid-template-columns: 160px 120px 120px 40px;
  gap: 24px;
  color: #94a3b8;
  font-size: 13px;
}

.trends-table {
  border-top: 1px solid #1e293b;
}

.trend-row {
  display: grid;
  grid-template-columns: 1fr 160px 120px 120px 40px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #1e293b;
}

.trend-title {
  font-size: 15px;
  color: #e5e7eb;
}

.trend-volume {
  font-weight: 600;
}

.trend-growth {
  font-size: 12px;
  color: #22c55e;
}

.trend-started {
  font-size: 13px;
}

.trend-source {
  font-size: 13px;
  color: #94a3b8;
}

.trend-menu {
  text-align: right;
  cursor: pointer;
  font-size: 18px;
  color: #94a3b8;
}

.trend-row:hover {
  background: rgba(255,255,255,0.03);
}

/* Mobile fallback */
@media (max-width: 768px) {
  .trends-cols {
    display: none;
  }

  .trend-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}




/* Started column – date (span) */
.col-started .stack span {
  font-weight: 600;   /* BOLD */
  color: #22c55e;
}

/* Started column – Active / graph row */
.col-started .graph {
  font-weight: 600;   /* BOLD effect */
}







/* ===== HOMEPAGE TREND CARDS FIX ===== */

#trendPreview .trend-card {
  height: 110px;                 /* sab cards same height */
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Title styling */
#trendPreview .trend-card h3 {
  color: #000000;                /* black text */
  font-weight: 700;              /* bold */
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 6px;

  display: -webkit-box;
  -webkit-line-clamp: 2;         /* sirf 2 line allowed */
  -webkit-box-orient: vertical;
  overflow: hidden;              /* baaki text hide */
}








/* ===== FOOTER LINKS STYLE ===== */

.footer a {
  color: #ffffff;        /* white color */
  font-weight: 600;      /* semi-bold */
  text-decoration: none;
}

.footer a:hover {
  color: #38bdf8;        /* hover par light blue */
}







