/* ==============================
   KATEGORIE  uta n   verze
============================== */

.magick-kategorie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 28px;   /* men  mezery */
    margin-bottom: 30px;
}

.magick-kat-item {
    padding: 2px 0;
    line-height: 1.35;
}

.magick-kat-item a {
    text-decoration: none;
    color: #d6dae3;
    font-size: 1.28rem;   /* v   p mo */
    font-weight: 500;
    transition: color 0.15s ease;
}

.magick-kat-item a:hover {
    color: #ffffff;
}

.magick-active a {
    font-weight: 600;
    color: #ffffff;
}

.magick-count {
    display: inline;      /* zp  vedle n vu */
    font-size: 0.95rem;
    color: #9aa2b2;
    margin-left: 6px;
}


/* ==============================
   VTIPY
============================== */

.magick-vtipy p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.magick-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.magick-bar {
    flex: 1;
    height: 4px;                  /* ten  */
    background: rgba(255,255,255,0.1);
    position: relative;
}

.magick-bar-fill {
    height: 100%;
    background: #bfc6d6;          /* neutr n archivn t  */
}

.magick-like-count,
.magick-dislike-count {
    width: 40px;
    text-align: center;
    color: #aab0bc;
}

/*V isy kategor */

.magick-archive-context {
    margin: 18px 0 25px 0;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border-left: 3px solid rgba(255,255,255,0.2);
    font-size: 1.1rem;
    color: #cfd3dc;
    line-height: 1.5;
}

/* p d  ico */

.magick-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 8px;
    font-size: 1.0rem;
    letter-spacing: 0.3px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e6eaf2;
}

/* ============================== VTIP  blokov odd en ============================== */

.magick-vtip {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 20px 22px 22px 22px;
    margin-bottom: 22px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.magick-vtip-text {
    font-size: 1.3rem;   /* uprav podle pocitu */
    line-height: 1.75;
    margin-bottom: 14px;
}

.magick-vtip {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.magick-vtip:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.06);
}

.magick-bar-fill {
    transition: background 0.2s ease;
}

.magick-vtip:hover .magick-bar-fill {
    background: #d7dcea;
}

.magick-bar {
    border-radius: 4px;
}

.magick-bar-fill {
    border-radius: 4px;
}

.magick-badge::before {
    content: "* ";
    opacity: 0.6;
}

body.page-id-433 #cm-secondary {
    display: none !important;
}

body.page-id-433 #cm-primary {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.magick-vote {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 6px;
    line-height: 1;
}

.magick-vote:hover {
    transform: scale(1.2);
}

.magick-vote:active {
    transform: scale(0.95);
}

.magick-vote {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.magick-vote:focus {
    outline: none;
    box-shadow: none;
}

.magick-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.magick-archiv-note {
    font-size: 0.85em;
    opacity: 0.75;
    margin-top: 4px;
}

.magick-archiv-note a {
    text-decoration: none;
}

.magick-archiv-note a:hover {
    text-decoration: underline;
}