/* ============================================================
   irc-blog.css — design system dla SmartBlog ircsklep.pl
   Spójny look dla wszystkich postów: rankingi, recenzje, poradniki.
   Klasy: .irc-blog-*
============================================================ */

.irc-blog { font-size: 17px; line-height: 1.7; color: #222; max-width: 820px; margin: 0 auto; }
.irc-blog h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.25; margin: 0 0 .5rem; color: #111; }
.irc-blog h2 { font-size: 1.55rem; font-weight: 700; line-height: 1.3; margin: 2.5rem 0 1rem; color: #111; padding-bottom: .5rem; border-bottom: 3px solid #c81e1e; }
.irc-blog h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 .75rem; color: #1a1a1a; }
.irc-blog p { margin: 0 0 1rem; }
.irc-blog a { color: #c81e1e; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.irc-blog a:hover { color: #9e1616; text-decoration-thickness: 2px; }
.irc-blog strong { font-weight: 700; color: #111; }
.irc-blog ul, .irc-blog ol { margin: 0 0 1.25rem 1.25rem; }
.irc-blog li { margin-bottom: .4rem; }

/* --- Author / lead --------------------------------------- */
.irc-blog__author { font-size: .9rem; color: #777; margin: 0 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e5e5; }
.irc-blog__lead { font-size: 1.2rem; line-height: 1.6; color: #333; margin-bottom: 1.5rem; }

/* --- Ranking product card -------------------------------- */
.irc-blog-product {
    position: relative;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 1.75rem 1.75rem 1.5rem;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.irc-blog-product--winner { border-color: #c81e1e; border-width: 2px; box-shadow: 0 4px 16px rgba(200,30,30,.12); }
.irc-blog-product__rank {
    position: absolute;
    top: -16px; left: 1.5rem;
    background: #c81e1e; color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-weight: 800; font-size: 1.3rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(200,30,30,.3);
}
.irc-blog-product__flag {
    position: absolute;
    top: -12px; right: 1.5rem;
    background: #ffc107; color: #1a1a1a;
    padding: .35rem .8rem;
    border-radius: 4px;
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.irc-blog-product h2, .irc-blog-product__title {
    margin: 0 0 .25rem; padding: 0; border: none;
    font-size: 1.5rem; font-weight: 800; color: #111;
}
.irc-blog-product__tagline { color: #666; font-size: 1rem; margin-bottom: .75rem; }
.irc-blog-product__price {
    font-size: 1.35rem; font-weight: 800; color: #c81e1e;
    margin-bottom: 1rem;
}
.irc-blog-product__price small { font-weight: 500; color: #888; font-size: .85rem; }
.irc-blog-product__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.irc-blog-tag {
    display: inline-block;
    background: #f0f0f0; color: #333;
    padding: .25rem .65rem;
    border-radius: 4px;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .3px;
}
.irc-blog-tag--hot { background: #c81e1e; color: #fff; }
.irc-blog-tag--new { background: #2e7d32; color: #fff; }
.irc-blog-product__meta { margin: 1rem 0; padding: .9rem 1rem; background: #fafafa; border-left: 3px solid #c81e1e; border-radius: 0 4px 4px 0; }
.irc-blog-product__meta p { margin: 0 0 .4rem; font-size: .95rem; }
.irc-blog-product__meta p:last-child { margin: 0; }
.irc-blog-product__cta {
    display: inline-block;
    background: #c81e1e; color: #fff !important;
    padding: .7rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: .5rem;
    transition: background .15s;
}
.irc-blog-product__cta:hover { background: #9e1616; color: #fff !important; }
.irc-blog-product__alt { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #ddd; font-size: .95rem; color: #555; }
.irc-blog-product__alt strong { color: #c81e1e; }

/* --- Callouts -------------------------------------------- */
.irc-blog-callout {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 6px;
    border-left: 4px solid #999;
    background: #f8f8f8;
}
.irc-blog-callout p:last-child { margin-bottom: 0; }
.irc-blog-callout--pick { border-left-color: #2e7d32; background: #f1f8e9; }
.irc-blog-callout--warn { border-left-color: #f9a825; background: #fff8e1; }
.irc-blog-callout--info { border-left-color: #1976d2; background: #e3f2fd; }
.irc-blog-callout--pick strong:first-child,
.irc-blog-callout--warn strong:first-child,
.irc-blog-callout--info strong:first-child { display: block; margin-bottom: .25rem; }

/* --- Comparison table ------------------------------------ */
.irc-blog-table-wrap { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.irc-blog-table {
    width: 100%;
    border-collapse: separate; border-spacing: 0;
    font-size: .95rem;
    background: #fff;
    border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden;
}
.irc-blog-table th, .irc-blog-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}
.irc-blog-table thead th {
    background: #1a1a1a; color: #fff;
    font-weight: 700;
    white-space: nowrap;
}
.irc-blog-table thead th.is-winner { background: #c81e1e; }
.irc-blog-table tbody tr:last-child td { border-bottom: none; }
.irc-blog-table tbody tr:nth-child(even) { background: #fafafa; }
.irc-blog-table tbody td:first-child { font-weight: 600; color: #333; background: #f5f5f5; }
.irc-blog-table .is-yes { color: #2e7d32; font-weight: 700; }
.irc-blog-table .is-no { color: #c81e1e; font-weight: 700; }

/* --- Quick picker ---------------------------------------- */
.irc-blog-picker { margin: 1.5rem 0; list-style: none; padding: 0; }
.irc-blog-picker li {
    display: flex; gap: 1rem; align-items: baseline;
    padding: .85rem 1rem;
    margin-bottom: .5rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    transition: border-color .15s, transform .15s;
}
.irc-blog-picker li:hover { border-color: #c81e1e; transform: translateX(3px); }
.irc-blog-picker__if { flex: 1; color: #555; font-size: .95rem; }
.irc-blog-picker__then { flex-shrink: 0; font-weight: 700; }
.irc-blog-picker__then a { color: #c81e1e; }

/* --- Accessories grid ------------------------------------ */
.irc-blog-accessories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    list-style: none; padding: 0;
}
.irc-blog-accessories li {
    padding: 1rem;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    margin: 0;
}
.irc-blog-accessories li strong { display: block; color: #c81e1e; margin-bottom: .35rem; }
.irc-blog-accessories li a { color: #c81e1e; }

/* --- FAQ ------------------------------------------------- */
.irc-blog-faq { margin-top: 2rem; }
.irc-blog-faq h3 {
    font-size: 1.1rem;
    padding: .9rem 0 .9rem 2rem;
    margin: 1rem 0 0;
    border-top: 1px solid #e5e5e5;
    position: relative;
    color: #111;
}
.irc-blog-faq h3::before {
    content: "?";
    position: absolute;
    left: 0; top: .85rem;
    width: 24px; height: 24px;
    background: #c81e1e; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: .9rem;
}
.irc-blog-faq h3 + p { margin-top: .25rem; color: #444; font-size: .97rem; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 640px) {
    .irc-blog { font-size: 16px; }
    .irc-blog h1 { font-size: 1.65rem; }
    .irc-blog h2 { font-size: 1.3rem; }
    .irc-blog-product { padding: 1.5rem 1.25rem 1.25rem; }
    .irc-blog-product__rank { left: 1rem; }
    .irc-blog-product__flag { right: 1rem; font-size: .7rem; }
    .irc-blog-picker li { flex-direction: column; gap: .3rem; }
    .irc-blog-picker__then { font-size: .95rem; }
}
