/* ===== CannaVibe Hub – vždy světlý vzhled + fotky ===== */
#canna-hub {
    background: linear-gradient(180deg,#ffffff,#fafafa) !important;
    border-radius: 22px;
    padding: clamp(14px, 3vw, 28px);
    margin: clamp(18px, 3vw, 36px) 0;
    box-shadow: 0 10px 20px rgba(0,0,0,.06), 0 3px 6px rgba(0,0,0,.04);
    color: #111827 !important;
    color-scheme: light;
  }
  #canna-hub * { color-scheme: light; }
  
  #canna-hub .hub-title{
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: #111827;
    line-height: 1.15;
    margin: 0 0 12px 0;
    letter-spacing: .2px;
  }
  #canna-hub .hub-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(12px, 2.4vw, 20px);
  }
  
  /* Karta s náhledem */
  #canna-hub .hub-item{
    display: grid;
    grid-template-columns: 86px 1fr 28px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "thumb label arrow"
      "thumb muted arrow";
    gap: 10px 12px;
    background: #fff !important;
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    color: #111827 !important;
    box-shadow: 0 10px 20px rgba(0,0,0,.06), 0 3px 6px rgba(0,0,0,.04);
    outline: 1px solid rgba(16,24,40,.08);
    transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
  }
  #canna-hub .hub-item:hover{
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.05);
    outline-color: rgba(14,165,233,.25);
  }
  #canna-hub .hub-item:focus-visible{
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
  }
  
  /* Náhled / fallback ikona */
  #canna-hub .hub-thumb{
    grid-area: thumb;
    width: 86px; height: 86px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    position: relative;
    outline: 1px solid rgba(16,24,40,.06);
  }
  #canna-hub .hub-thumb img{
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0; /* fade-in */
    transition: opacity .2s ease;
  }
  #canna-hub .hub-thumb img.is-loaded{ opacity: 1; }
  #canna-hub .hub-thumb .hub-icon{
    font-size: 28px;
  }
  
  #canna-hub .hub-label{
    grid-area: label;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.25;
    align-self: end;
  }
  #canna-hub .hub-muted{
    grid-area: muted;
    font-size: 12px;
    color: #6b7280 !important;
    margin-top: 2px;
  }
  
  #canna-hub .hub-arrow{
    grid-area: arrow;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: grid; place-items: center;
    outline: 1px solid rgba(16,24,40,.08);
    align-self: center;
    transition: transform .18s ease, outline-color .18s ease;
    color: inherit;
  }
  #canna-hub .hub-item:hover .hub-arrow{
    transform: translateX(2px);
    outline-color: rgba(14,165,233,.3);
  }
  
  /* Vynutit světlý i v dark módu */
  @media (prefers-color-scheme: dark){
    #canna-hub{ background: linear-gradient(180deg,#ffffff,#fafafa) !important; color:#111827 !important; }
    #canna-hub .hub-item{ background:#fff !important; color:#111827 !important; }
    #canna-hub .hub-muted{ color:#6b7280 !important; }
  }
  
  /* Menší telefony: přehoď layout do sloupců */
  @media (max-width: 420px){
    #canna-hub .hub-item{
      grid-template-columns: 1fr 28px;
      grid-template-areas:
        "thumb arrow"
        "label arrow"
        "muted arrow";
      grid-template-rows: 120px auto auto;
    }
    #canna-hub .hub-thumb{ width: 100%; height: 120px; }
  }
  
  /* ===== Mobilní vylepšení pro hub (přepiš stávající styly) ===== */

/* Tablety a menší (<= 760px): dvě sloupce, větší tap zóny */
@media (max-width: 760px){
  #canna-hub { 
    padding: 16px; 
    margin: 16px 0 28px; 
  }
  #canna-hub .hub-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
  }
  #canna-hub .hub-item{
    /* vertikální layout – náhled nahoře, text pod ním, šipka vpravo */
    grid-template-columns: 1fr 28px;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "thumb arrow"
      "label arrow"
      "muted arrow";
    padding: 14px;
    min-height: 84px; /* rozumná tap plocha */
  }
  #canna-hub .hub-thumb{
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;           /* hezký poměr, drží výšku i bez obrázku */
    border-radius: 12px;
  }
  #canna-hub .hub-label{ 
    font-size: 16px; 
    margin-top: 6px; 
  }
  #canna-hub .hub-muted{ 
    font-size: 12.5px; 
    margin-top: 2px; 
  }
  #canna-hub .hub-arrow{
    align-self: start; 
    margin-top: 6px;
  }
}

/* Telefony (<= 480px): jeden sloupec, větší náhledy, pohodlné čtení */
@media (max-width: 480px){
  #canna-hub .hub-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #canna-hub .hub-item{
    padding: 14px 14px 12px;
    grid-template-columns: 1fr 32px;
    grid-template-areas:
      "thumb arrow"
      "label arrow"
      "muted arrow";
  }
  #canna-hub .hub-thumb{
    aspect-ratio: 16 / 9;          /* bannerovější look na mobilech */
    border-radius: 12px;
  }
  #canna-hub .hub-label{ 
    font-size: 17px; 
    line-height: 1.25; 
  }
  #canna-hub .hub-muted{ 
    font-size: 13px; 
  }
  #canna-hub .hub-arrow{
    width: 24px; 
    height: 24px;
  }
}

/* Velmi úzké telefony (<= 360px): kompaktnější mezery a texty */
@media (max-width: 360px){
  #canna-hub .hub-item{ 
    padding: 12px; 
    gap: 8px 10px; 
  }
  #canna-hub .hub-label{ font-size: 16px; }
  #canna-hub .hub-muted{ font-size: 12px; }
}

/* Jemný „safe“ zoom pro vysokou hustotu pixelů – ostřejší obrázky */
@media (min-resolution: 2dppx){
  #canna-hub .hub-thumb img{ 
    image-rendering: auto; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
  }
}


/* === FIX: vždy 2 dlaždice vedle sebe na mobilech === */

/* Tablety a menší */
@media (max-width: 760px){
    #canna-hub .hub-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 10px !important;
    }
    /* kompaktnější karta na menších šířkách */
    #canna-hub .hub-item{
      grid-template-columns: 1fr 28px;
      grid-template-rows: auto auto auto;
      grid-template-areas:
        "thumb arrow"
        "label arrow"
        "muted arrow";
      padding: 12px;
    }
    #canna-hub .hub-thumb{
      width: 100%;
      height: auto;
      aspect-ratio: 4 / 3;
      border-radius: 12px;
    }
  }
  
  /* Telefony – přepiš předchozí 1 sloupec na 2 sloupce */
  @media (max-width: 480px){
    #canna-hub .hub-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 8px !important;
    }
    #canna-hub .hub-item{
      padding: 10px;
    }
    #canna-hub .hub-label{ font-size: 14px; }
    #canna-hub .hub-muted{ font-size: 12px; }
    #canna-hub .hub-thumb{ aspect-ratio: 4 / 3; }
  }
  
  /* Velmi úzké telefony – pořád 2 sloupce, jen drobnější typografie */
  @media (max-width: 360px){
    #canna-hub .hub-grid{
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 6px !important;
    }
    #canna-hub .hub-item{
      padding: 8px;
    }
    #canna-hub .hub-label{ font-size: 13px; }
    #canna-hub .hub-muted{ font-size: 11.5px; }
  }
  