/* ════════════════════════════════════════
   device.css — Screen & Device Info Tool
   style.css ke saath use karo
   ════════════════════════════════════════ */

/* ── Device Hero Card ── */
.device-hero-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
  animation: fadeUp 0.5s ease both;
}

.device-hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.device-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-svg {
  filter: drop-shadow(0 6px 20px rgba(192,98,42,0.2));
  transition: all 0.4s ease;
}

.device-hero-info {
  flex: 1;
}

.device-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.device-res-big {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
  line-height: 1;
  transition: all 0.3s ease;
}

.device-res-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.3rem;
  margin-bottom: 1rem;
}

.device-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dqs-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s;
}

/* ── Live Resize Bar ── */
.resize-bar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both 0.1s;
}

.resize-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rb-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.rb-value {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Courier New', monospace;
  letter-spacing: -0.5px;
  min-width: 130px;
  text-align: right;
  transition: all 0.1s;
}

.resize-bar-bg {
  height: 10px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 0.8rem;
  position: relative;
}

.resize-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px;
  transition: width 0.1s ease;
  min-width: 4px;
}

.resize-breakpoints {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.bp {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.bp small {
  display: block;
  font-size: 0.65rem;
  opacity: 0.7;
}

.bp.active {
  color: var(--accent);
}

.current-bp-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding: 0.4rem;
  background: var(--accent-lt);
  border-radius: 8px;
  border: 1px solid rgba(192,98,42,0.2);
  transition: all 0.2s;
}

/* ── Info Panels Grid ── */
.info-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.info-panel {
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.5s ease both;
}
.info-panel:nth-child(2) { animation-delay: 0.05s; }
.info-panel:nth-child(3) { animation-delay: 0.1s; }
.info-panel:nth-child(4) { animation-delay: 0.15s; }
.info-panel:nth-child(5) { animation-delay: 0.2s; }
.info-panel:nth-child(6) { animation-delay: 0.25s; }

/* ── Info Rows ── */
.info-rows {
  padding: 0.5rem 0;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.3rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
  transition: background 0.15s;
}
.info-row:last-child { border-bottom: none; }
.info-row:hover { background: var(--accent-lt); }

.ir-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.ir-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.ir-value.accent { color: var(--accent); }

.ir-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-lt);
  color: var(--accent);
  border: 1px solid rgba(192,98,42,0.2);
}

/* ── Battery ── */
.battery-visual-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.battery-shell {
  width: 60px;
  height: 28px;
  border: 2.5px solid var(--text);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.battery-shell::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 12px;
  background: var(--text);
  border-radius: 0 2px 2px 0;
}

.battery-fill {
  position: absolute;
  top: 2px; bottom: 2px; left: 2px;
  border-radius: 2px;
  transition: width 0.5s ease, background 0.5s ease;
  background: #22c55e;
}

.battery-pct {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

/* ── Capabilities Grid ── */
.capabilities-panel {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both 0.3s;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
  padding: 1.2rem 1.3rem;
}

.cap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.2s;
  text-align: center;
}

.cap-item:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,0.07); }

.cap-icon { font-size: 1.4rem; }

.cap-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.cap-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
}

.cap-yes { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.cap-no  { background: #fef2f2; color: #7f1d1d; border: 1px solid #fca5a5; }
.cap-na  { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ── User Agent ── */
.ua-panel {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease both 0.35s;
}

.copy-ua-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-lt);
  border: 1px solid rgba(192,98,42,0.25);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Baloo 2', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-ua-btn:hover { background: rgba(192,98,42,0.15); }

.ua-string {
  padding: 1rem 1.3rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  word-break: break-all;
  background: var(--bg);
  margin: 0.3rem 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
  .seo-content {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
    color: #1a1a2e;
    line-height: 1.8;
  }
 
  .seo-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 12px;
    color: #0f172a;
    border-left: 4px solid #3b82f6;
    padding-left: 12px;
  }
 
  .seo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 6px;
    color: #1e40af;
  }
 
  .seo-content p {
    margin-bottom: 14px;
    color: #374151;
    font-size: 0.97rem;
  }
 
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
  }
 
  .feature-card {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 16px;
  }
 
  .feature-card .icon { font-size: 1.4rem; }
  .feature-card strong { display: block; margin: 6px 0 4px; font-size: 0.95rem; color: #1e3a8a; }
  .feature-card span { font-size: 0.85rem; color: #4b5563; }
 
  .steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: steps;
  }
 
  .steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 14px;
    border: 1px solid #e2e8f0;
  }
 
  .steps-list li::before {
    content: counter(steps);
    background: #3b82f6;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
  }
 
  .faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
  }
 
  .faq-q {
    background: #f9fafb;
    padding: 14px 18px;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.95rem;
    cursor: pointer;
  }
 
  .faq-a {
    padding: 12px 18px;
    color: #4b5563;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
  }
 
  .use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
  }
 
  .use-case-tag {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: #1d4ed8;
  }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Baloo 2', sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .info-panels-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .device-hero-card { padding: 1.5rem; gap: 1.5rem; }
}

@media (max-width: 700px) {
  .device-hero-card { flex-direction: column; align-items: flex-start; padding: 1.2rem; gap: 1rem; }
  .device-res-big { font-size: 2.2rem; }
  .info-panels-grid { grid-template-columns: 1fr; gap: 1rem; }
  .capabilities-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .resize-breakpoints { gap: 0.3rem; }
  .bp { font-size: 0.62rem; }
}

@media (max-width: 420px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .device-quick-stats { gap: 0.4rem; }
  .dqs-chip { font-size: 0.72rem; padding: 0.25rem 0.65rem; }
}
