/* InfoHub — stiluri transcrise din design/InfoHub.dc.html */

html, body { margin: 0; padding: 0; background: #F5F7FA; }
body { font-family: 'IBM Plex Sans', sans-serif; color: #1B2B42; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
input::placeholder { color: #93A1B5; }

@keyframes ih-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ih-page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.ih-header { background: #10243E; padding: 0 40px; display: flex; align-items: center; gap: 28px; height: 68px; position: sticky; top: 0; z-index: 20; }
.ih-logo { display: flex; align-items: baseline; gap: 2px; cursor: pointer; flex-shrink: 0; text-decoration: none; }
.ih-logo-info { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; color: #FFFFFF; }
.ih-logo-hub { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 21px; color: #6EA8FF; }
.ih-sform-header { flex: 1; max-width: 560px; display: flex; gap: 8px; }
.ih-input-header { flex: 1; height: 40px; border: 1px solid #2C4362; background: #1A3354; border-radius: 8px; padding: 0 14px; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; color: #FFFFFF; outline: none; }
.ih-input-header:focus { border-color: #6EA8FF; }
.ih-btn-header { height: 40px; padding: 0 18px; background: #1F5EDC; color: #FFFFFF; border: none; border-radius: 8px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; }
.ih-btn-header:hover { background: #2A6BEE; }

/* Homepage */
.ih-home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 32px; animation: ih-fade 0.35s ease; }
.ih-home-logo { display: flex; align-items: baseline; gap: 2px; margin-bottom: 20px; }
.ih-logo-info-lg { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 40px; color: #10243E; }
.ih-logo-hub-lg { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 40px; color: #1F5EDC; }
.ih-home-h1 { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 22px; color: #10243E; margin: 0 0 8px; text-align: center; }
.ih-home-sub { font-size: 15px; color: #5B6B7C; margin: 0 0 36px; text-align: center; max-width: 480px; line-height: 1.5; }
.ih-sform { width: 100%; max-width: 640px; display: flex; gap: 10px; margin: 0 0 14px; }
.ih-input-home { flex: 1; height: 58px; border: 1.5px solid #D5DDE8; background: #FFFFFF; border-radius: 12px; padding: 0 20px; font-family: 'IBM Plex Sans', sans-serif; font-size: 17px; color: #1B2B42; outline: none; box-shadow: 0 2px 10px rgba(16,36,62,0.06); }
.ih-input-home:focus { border-color: #1F5EDC; box-shadow: 0 2px 14px rgba(31,94,220,0.14); }
.ih-btn-home { height: 58px; padding: 0 30px; background: #1F5EDC; color: #FFFFFF; border: none; border-radius: 12px; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; cursor: pointer; }
.ih-btn-home:hover { background: #2A6BEE; }
.ih-home-helper { font-size: 13px; color: #93A1B5; margin: 0 0 44px; }

/* Recent searches pills (shared: home + notfound) */
.ih-recent-wrap { width: 100%; max-width: 640px; }
.ih-recent-label { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #93A1B5; margin-bottom: 12px; }
.ih-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ih-pill { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-family: 'IBM Plex Sans', sans-serif; text-decoration: none; }
.ih-pill:hover { border-color: #1F5EDC; box-shadow: 0 2px 8px rgba(31,94,220,0.10); }
.ih-pill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ih-pill-name { font-size: 13px; font-weight: 500; color: #1B2B42; }
.ih-pill-cui { font-size: 12px; color: #93A1B5; font-variant-numeric: tabular-nums; }

/* Shared main container (results / profile / notfound / 404) */
.ih-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 36px 32px 80px; animation: ih-fade 0.35s ease; }

/* Notfound / 404 */
.ih-notfound { max-width: 620px; padding: 72px 32px 80px; display: flex; flex-direction: column; align-items: center; }
.ih-nf-pill { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: #B3261E; background: #FBEAE9; border-radius: 10px; padding: 10px 18px; font-variant-numeric: tabular-nums; margin-bottom: 24px; }
.ih-nf-h1 { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; color: #10243E; margin: 0 0 10px; text-align: center; }
.ih-nf-p { font-size: 15px; color: #5B6B7C; line-height: 1.6; margin: 0 0 28px; text-align: center; max-width: 440px; }
.ih-nf-actions { display: flex; gap: 10px; margin-bottom: 52px; }
.ih-btn-primary { height: 46px; padding: 0 22px; background: #1F5EDC; color: #FFFFFF; border: none; border-radius: 10px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.ih-btn-primary:hover { background: #2A6BEE; }

/* Results */
.ih-results { max-width: 860px; }
.ih-results-label { font-size: 14px; color: #5B6B7C; margin: 0 0 20px; }
.ih-rescards { display: flex; flex-direction: column; gap: 12px; }
.ih-rescard { display: flex; align-items: center; gap: 20px; background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 14px; padding: 20px 24px; cursor: pointer; text-decoration: none; color: inherit; }
.ih-rescard:hover { border-color: #1F5EDC; box-shadow: 0 4px 16px rgba(31,94,220,0.10); }
.ih-rescard-main { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ih-rescard-name { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 600; color: #10243E; }
.ih-rescard-sub { font-size: 13px; color: #5B6B7C; font-variant-numeric: tabular-nums; }
.ih-rescard-badges { display: flex; gap: 8px; align-items: center; }
.ih-badge { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 4px 10px; }
.ih-badge-tva { color: #1F5EDC; background: #EAF1FE; }
.ih-badge-ef { color: #6D28D9; background: #F2EDFC; }
.ih-empty { text-align: center; padding: 72px 0; color: #5B6B7C; }
.ih-empty-title { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; color: #10243E; margin-bottom: 8px; }
.ih-empty-sub { font-size: 14px; }

/* Profile */
.ih-profile { max-width: 980px; padding: 32px 32px 80px; }
.ih-back { background: none; border: none; padding: 0; font-family: 'IBM Plex Sans', sans-serif; font-size: 14px; font-weight: 500; color: #1F5EDC; cursor: pointer; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ih-back:hover { text-decoration: underline; }
.ih-card { background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 16px; padding: 28px 32px; }
.ih-hero-card { margin-bottom: 20px; }
.ih-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.ih-coname { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 700; color: #10243E; margin: 0 0 6px; }
.ih-hero-sub { font-size: 14px; color: #5B6B7C; }
.ih-badge-lg { font-size: 13px; font-weight: 600; border-radius: 8px; padding: 7px 14px; white-space: nowrap; }
.ih-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ih-cui-pill { display: flex; align-items: center; gap: 10px; background: #F5F7FA; border: 1px solid #E3E8EF; border-radius: 10px; padding: 10px 16px; }
.ih-cui-label { font-size: 13px; color: #5B6B7C; }
.ih-cui-value { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: #10243E; font-variant-numeric: tabular-nums; }
.ih-copy-btn { background: none; border: 1px solid #D5DDE8; border-radius: 7px; padding: 4px 10px; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 600; color: #1F5EDC; cursor: pointer; }
.ih-copy-btn:hover { border-color: #1F5EDC; background: #EAF1FE; }
.ih-copy-btn-block { border-radius: 10px; padding: 10px 16px; font-size: 13px; }

/* Info grid */
.ih-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.ih-info-card { background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 16px; padding: 24px 28px; }
.ih-info-label { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #93A1B5; margin-bottom: 16px; }
.ih-info-rows { display: flex; flex-direction: column; gap: 12px; }
.ih-info-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ih-info-row > span:first-child { font-size: 14px; color: #5B6B7C; flex-shrink: 0; }
.ih-info-row > span:last-child { font-size: 14px; font-weight: 500; color: #1B2B42; text-align: right; }
.ih-info-row > span:last-child.ih-badge { text-align: left; }

/* Financials */
.ih-fin-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.ih-fin-source { font-size: 12px; color: #93A1B5; }
.ih-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.ih-stat-tile { background: #F5F7FA; border-radius: 12px; padding: 16px 20px; }
.ih-stat-label { font-size: 13px; color: #5B6B7C; margin-bottom: 4px; }
.ih-stat-value { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 700; color: #10243E; font-variant-numeric: tabular-nums; }
.ih-chart-legend { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.ih-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #5B6B7C; }
.ih-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ih-chart { display: flex; align-items: flex-end; gap: 40px; height: 200px; padding: 0 8px; border-bottom: 1px solid #E3E8EF; }
.ih-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.ih-chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 100%; width: 100%; justify-content: center; }
.ih-bar { width: 34px; border-radius: 6px 6px 0 0; transition: filter .15s ease; }
.ih-bar:hover { filter: brightness(1.08); }
.ih-chartlabels { display: flex; gap: 40px; padding: 10px 8px 0; }
.ih-chartlabel { flex: 1; text-align: center; }
.ih-chartlabel-year { font-size: 13px; font-weight: 600; color: #10243E; font-variant-numeric: tabular-nums; }
.ih-chartlabel-ca { font-size: 12px; color: #93A1B5; font-variant-numeric: tabular-nums; }

/* Footer */
.ih-footer { padding: 20px 40px; text-align: center; font-size: 12px; color: #93A1B5; }

@media (max-width: 640px) {
  .ih-header { padding: 0 16px !important; gap: 12px !important; }
  .ih-home { padding: 48px 20px !important; }
  .ih-sform { flex-direction: column !important; }
  .ih-main { padding: 24px 16px 64px !important; }
  .ih-grid2 { grid-template-columns: 1fr !important; }
  .ih-grid3 { grid-template-columns: 1fr !important; gap: 10px !important; }
  .ih-hero { flex-direction: column !important; }
  .ih-chart { gap: 12px !important; }
  .ih-chartlabels { gap: 12px !important; }
  .ih-bar { width: 20px !important; }
  .ih-coname { font-size: 20px !important; }
  .ih-card { padding: 18px 20px !important; }
  .ih-rescard { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
}

/* ===== Autosuggest ===== */
.ih-suggest-wrap { position: relative; flex: 1; display: flex; }
.ih-suggest-wrap input { width: 100%; }
.ih-suggest-list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; background: #FFFFFF; border: 1px solid #E3E8EF; border-radius: 12px; box-shadow: 0 8px 28px rgba(16,36,62,0.14); overflow: hidden; max-height: 420px; overflow-y: auto; }
.ih-suggest-item { display: flex; flex-direction: column; gap: 2px; padding: 11px 16px; text-decoration: none; color: inherit; border-bottom: 1px solid #F0F3F7; }
.ih-suggest-item:last-child { border-bottom: none; }
.ih-suggest-item:hover, .ih-suggest-item.is-active { background: #F0F5FF; }
.ih-suggest-name { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 600; color: #10243E; }
.ih-suggest-name mark { background: none; color: #1F5EDC; }
.ih-suggest-meta { font-size: 12px; color: #5B6B7C; font-variant-numeric: tabular-nums; }

/* ===== Placeholder API (fiscal + financiar) ===== */
.ih-placeholder-note { margin-top: 14px; font-size: 12px; color: #93A1B5; }
.ih-fin-placeholder { text-align: center; padding: 36px 0 28px; color: #5B6B7C; }
.ih-updated-note { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #93A1B5; }
.ih-refresh-btn { background: none; border: 1px solid #D5DDE8; border-radius: 7px; padding: 3px 9px; font-family: 'IBM Plex Sans', sans-serif; font-size: 11px; font-weight: 600; color: #1F5EDC; cursor: pointer; }
.ih-refresh-btn:hover { border-color: #1F5EDC; background: #EAF1FE; }
.ih-refresh-btn:disabled { opacity: .6; cursor: default; }
.ih-loading-note { animation: ih-pulse 1.4s ease-in-out infinite; }
@keyframes ih-pulse { 50% { opacity: .45; } }
.ih-results-note { font-size: 13px; color: #5B6B7C; margin-top: 16px; }
