/* Local overrides for coinario.com */

/* Header search field — make it visually obvious */
header .search .field { position: relative; }
header .search input[type=text].search {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    color: #fff;
    padding: 6px 36px 6px 14px;
    font-size: 13px;
    width: 100%;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
}
header .search input[type=text].search::placeholder { color: rgba(255,255,255,0.7); }
header .search input[type=text].search:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.9);
}
header .search .field .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2.5'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cline x1='15' y1='15' x2='22' y2='22'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    display: block;
}

.detail-logo { margin-bottom: 15px; }
.detail-logo img { max-height: 60px; max-width: 200px; }

/* Exchange table — prevent logo overflow into name column */
.table_exchange div.wrap>div.image { overflow: hidden; flex-shrink: 0; min-width: 100px; }
.table_exchange div.wrap>div.image img { max-width: 100% !important; max-height: 40px !important; width: auto !important; height: auto !important; display: block; }

.whiteblue { background: #f5f8ff; padding: 20px 0; margin-bottom: 20px; }
.whiteblue h1 { color: #0067D8; font-size: 28px; margin-bottom: 5px; }
.whiteblue .subtitle { color: #666; }

.result-row { border-bottom: 1px solid #eee; padding: 12px 0; display: flex; align-items: center; }
.result-row .logo-col { width: 80px; flex-shrink: 0; }
.result-row .logo-col img { max-height: 40px; max-width: 70px; }
.result-row .name-col { flex: 1; font-weight: 500; }
.result-row .meta-col { color: #666; font-size: 13px; min-width: 100px; }
.result-row .btn-col { min-width: 100px; text-align: right; }

.table-header { font-weight: bold; border-bottom: 2px solid #0067D8; padding: 8px 0; display: flex; color: #0067D8; margin-bottom: 5px; }

.article-card { border-bottom: 1px solid #eee; padding: 20px 0; }
.article-card h3 { margin-bottom: 8px; }
.article-card h3 a { color: #0067D8; text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card .perex { color: #555; }
.article-card .date { color: #999; font-size: 13px; margin-top: 8px; }

.rating-stars { color: #f5a623; }
.rating-val { font-weight: bold; color: #333; margin-left: 5px; }

.quick-overview { background: #f9f9f9; border-radius: 4px; padding: 20px; margin: 20px 0; }
.quick-overview table { width: 100%; }
.quick-overview td { padding: 6px 10px; border-bottom: 1px solid #eee; }
.quick-overview td:first-child { color: #666; font-weight: 500; width: 40%; }

.pagination { margin: 30px 0; }
.pagination a { display: inline-block; padding: 6px 12px; margin: 0 2px; border: 1px solid #ddd; color: #0067D8; border-radius: 3px; text-decoration: none; }
.pagination a:hover, .pagination a.active { background: #0067D8; color: #fff; border-color: #0067D8; }

.search-bar { margin-bottom: 20px; }
.search-bar input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; }

.no-logo { background: #eee; width: 70px; height: 40px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; color: #999; font-size: 11px; }

.wallet-type-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #e8f0fe; color: #0067D8; margin-right: 4px; }

.platform-badges span { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 11px; background: #f0f0f0; color: #555; margin-right: 3px; }

h1.page-title { color: #0067D8; margin-bottom: 20px; }
.count-info { color: #888; font-size: 14px; margin-bottom: 15px; }

/* Converter */
.converter-box { background: #f5f8ff; border-radius: 6px; padding: 30px; max-width: 600px; margin: 0 auto; }
.converter-box input, .converter-box select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; width: 100%; margin-bottom: 10px; }
.converter-result { font-size: 24px; font-weight: bold; color: #0067D8; text-align: center; padding: 20px; }

/* ============================================================
   Mobile responsivity — prevent overflow on small screens
   ============================================================ */
@media (max-width: 480px) {
  /* Tables / rows */
  .wrap.result-row,
  .wrap.api-row { flex-wrap: wrap; gap: 4px; }

  /* Overview grid single column on mobile */
  .overview { display: block; }
  .overview .parametr { margin-bottom: 8px; }

  /* Quick info sidebar stacks below content */
  .quick-info,
  .socials-networks { margin-top: 15px; }

  /* Coin detail header stats stack */
  .new-cryptocompare-api .col-xs-12 { margin-bottom: 8px; }

  /* Search input full width */
  .search-form-small input[type=text] { max-width: 220px; }

  /* Exchange / wallet detail header */
  .detail-title .name,
  .detail-title .currencies,
  .detail-title .country { padding-bottom: 6px; }

  /* Mining table */
  .table.table-striped { font-size: 13px; }
  .table.table-striped th,
  .table.table-striped td { padding: 4px 6px; }

  /* Converter */
  .converter-box { padding: 15px; }

  /* Proof-type flex wrap */
  .proof-type { flex-direction: column; }
}

@media (max-width: 767px) {
  /* Hide less important columns on small screens */
  .table_crypto .vol,
  .table_crypto .cap { display: none; }

  .table_exchange .country,
  .table_exchange .currencies { display: none; }

  /* Sidebar moves below main content on mobile (Bootstrap does col-sm-4 stacking) */
  .col-sm-4 { margin-top: 20px; }

  /* Wrap parametr grid */
  .overview.cols2 .parametr { width: 100%; }
}

/* ============================================================
   Proof-type layout (mining page)
   ============================================================ */
.proof-type { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.proof-type .type { background: #f9f9f9; border-radius: 6px; padding: 12px 16px; min-width: 160px; flex: 1; }
.proof-type .type span { font-weight: 600; display: block; margin-bottom: 4px; }
.proof-type .type small { color: #888; font-size: 12px; display: block; }
.proof-type .type p { font-size: 12px; color: #666; margin: 4px 0 0; }

/* ============================================================
   Algo column on mining list
   ============================================================ */
.table_crypto .algo { flex: 0 0 140px; font-size: 13px; color: #555; }
@media (max-width: 767px) { .table_crypto .algo { display: none; } }
