/* ============================================
   affiliate.css — TellusCreative affiliate-sidor
   ============================================ */

/* ---- AFFILIATE HUB HERO ---- */
.aff-hero {
    position: relative;
    padding: 160px 32px 100px;
    overflow: hidden;
    text-align: center;
}
.aff-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 40%, hsla(263,85%,65%,0.14), transparent 70%),
        radial-gradient(ellipse 50% 40% at 70% 60%, hsla(188,91%,53%,0.10), transparent 70%),
        radial-gradient(ellipse 40% 50% at 50% 20%, hsla(142,71%,55%,0.08), transparent 70%);
    pointer-events: none;
}
.aff-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.aff-hero-badge {
    padding: 6px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.aff-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.aff-hero-lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 540px;
}
.aff-hero-cats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.ahc-pill {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid;
    transition: transform 0.2s ease;
}
.ahc-pill:hover { transform: translateY(-2px); }
.ahc-train { background: hsla(142,71%,55%,0.12); border-color: hsla(142,71%,55%,0.3); color: hsl(142,71%,65%); }
.ahc-music { background: hsla(263,85%,65%,0.12); border-color: hsla(263,85%,65%,0.3); color: hsl(263,85%,75%); }
.ahc-app   { background: hsla(188,91%,53%,0.12); border-color: hsla(188,91%,53%,0.3); color: hsl(188,91%,63%); }

/* ---- DISCLOSURE ---- */
.aff-disclosure {
    background: rgba(255,200,50,0.05);
    border-top: 1px solid rgba(255,200,50,0.15);
    border-bottom: 1px solid rgba(255,200,50,0.15);
    padding: 14px 32px;
}
.aff-disc-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.disc-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.aff-disc-inner p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ---- AFFILIATE SECTIONS ---- */
.aff-inner {
    max-width: 1140px;
    margin: 0 auto;
}
.aff-cats-section {
    padding: 100px 32px;
}

/* ---- KATEGORI-KORT (hub) ---- */
.aff-cats-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.aff-cat-card {
    position: relative;
    padding: 36px 28px 28px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.22,.68,0,1.2), border-color 0.3s ease, box-shadow 0.3s ease;
}
.aff-cat-card:hover { transform: translateY(-6px); }

.acc-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    pointer-events: none;
}
.acc-train .acc-glow { background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(142,71%,55%,0.12), transparent); }
.acc-music .acc-glow { background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(263,85%,65%,0.14), transparent); }
.acc-app   .acc-glow { background: radial-gradient(ellipse 80% 60% at 50% 0%, hsla(188,91%,53%,0.12), transparent); }
.aff-cat-card:hover .acc-glow { opacity: 1; }

.acc-train:hover { border-color: hsla(142,71%,55%,0.3); box-shadow: 0 20px 60px hsla(142,71%,55%,0.12); }
.acc-music:hover { border-color: hsla(263,85%,65%,0.35); box-shadow: 0 20px 60px hsla(263,85%,65%,0.12); }
.acc-app:hover   { border-color: hsla(188,91%,53%,0.3); box-shadow: 0 20px 60px hsla(188,91%,53%,0.12); }

.acc-top { display: flex; align-items: center; justify-content: space-between; position: relative; }
.acc-icon { font-size: 2rem; line-height: 1; }
.acc-count { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.acc-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; position: relative; }
.acc-desc  { font-size: 0.92rem; color: var(--muted); line-height: 1.65; flex: 1; position: relative; }
.acc-tags  { display: flex; flex-wrap: wrap; gap: 6px; position: relative; }
.acc-tags span { font-size: 0.7rem; padding: 3px 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--bd); border-radius: 999px; color: var(--muted); }
.acc-cta {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 700;
    position: relative;
    transition: gap 0.2s ease;
}
.aff-cat-card:hover .acc-cta { gap: 10px; }
.acc-train .acc-cta { color: hsl(142,71%,65%); }
.acc-music .acc-cta { color: hsl(263,85%,75%); }
.acc-app   .acc-cta { color: hsl(188,91%,63%); }

/* ---- TOPPVAL (hub) ---- */
.aff-top-section { padding: 0 32px 100px; }
.top-picks-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}
.top-pick {
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.top-pick:hover { transform: translateY(-4px); }
.tp-badge {
    display: inline-block;
    margin: 20px 20px 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.tp-train { background: hsla(142,71%,55%,0.15); color: hsl(142,71%,65%); border: 1px solid hsla(142,71%,55%,0.3); }
.tp-music { background: hsla(263,85%,65%,0.15); color: hsl(263,85%,75%); border: 1px solid hsla(263,85%,65%,0.3); }
.tp-app   { background: hsla(188,91%,53%,0.15); color: hsl(188,91%,63%); border: 1px solid hsla(188,91%,53%,0.3); }

.tp-img-wrap {
    padding: 16px 20px;
}
.tp-img-wrap img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.tp-info { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.tp-stars { color: hsl(45,100%,60%); font-size: 0.9rem; letter-spacing: 2px; }
.tp-info h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.tp-info p  { font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.tp-link    { font-size: 0.82rem; font-weight: 700; text-decoration: none; margin-top: 4px; }
.tp-link-train { color: hsl(142,71%,65%); }
.tp-link-music { color: hsl(263,85%,75%); }
.tp-link-app   { color: hsl(188,91%,63%); }

/* ---- ARTIKEL HERO ---- */
.art-hero {
    position: relative;
    padding: 140px 32px 80px;
    overflow: hidden;
}
.art-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.art-hero-train .art-hero-bg { background: radial-gradient(ellipse 70% 60% at 20% 50%, hsla(142,71%,55%,0.15), transparent 70%); }
.art-hero-music .art-hero-bg { background: radial-gradient(ellipse 70% 60% at 20% 50%, hsla(263,85%,65%,0.18), transparent 70%); }
.art-hero-app   .art-hero-bg { background: radial-gradient(ellipse 70% 60% at 20% 50%, hsla(188,91%,53%,0.15), transparent 70%); }

.art-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.art-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.art-cat {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
}
.art-cat-train { background: hsla(142,71%,55%,0.15); border-color: hsla(142,71%,55%,0.35); color: hsl(142,71%,65%); }
.art-cat-music { background: hsla(263,85%,65%,0.15); border-color: hsla(263,85%,65%,0.35); color: hsl(263,85%,75%); }
.art-cat-app   { background: hsla(188,91%,53%,0.15); border-color: hsla(188,91%,53%,0.35); color: hsl(188,91%,63%); }
.art-date, .art-read { font-size: 0.8rem; color: var(--muted); }

.art-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.art-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.7; margin-bottom: 24px; max-width: 640px; }
.art-jump { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.82rem; }
.art-jump span { color: var(--subtle); }
.art-jump a { color: var(--world); text-decoration: none; font-weight: 600; transition: opacity 0.2s ease; }
.art-jump a:hover { opacity: 0.7; }

/* ---- ARTIKEL SEKTIONER ---- */
.art-section { padding: 80px 32px; }
.art-dark { background: var(--bg-alt); }
.art-inner { max-width: 1100px; margin: 0 auto; }

/* ---- SNABBVAL ---- */
.quick-picks {
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 20px;
    padding: 32px;
}
.qp-header { margin-bottom: 24px; }
.qp-header h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.qp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.qp-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bd);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.25s ease;
}
.qp-item:hover { border-color: var(--world-bd); }
.qp-gold { border-color: hsla(45,100%,60%,0.3); background: hsla(45,100%,60%,0.04); }
.qp-rank { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.qp-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.qp-why  { font-size: 0.82rem; color: var(--muted); line-height: 1.4; flex: 1; }
.qp-link { font-size: 0.8rem; font-weight: 700; color: var(--world); text-decoration: none; margin-top: 4px; transition: opacity 0.2s ease; }
.qp-link:hover { opacity: 0.7; }

/* ---- PRODUKT-KORT ---- */
.prod-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}
.prod-img-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.prod-img-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--bd);
    background: rgba(255,255,255,0.03);
}
.prod-img-wrap img { width: 100%; height: 220px; object-fit: cover; display: block; }
.prod-rating {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.pr-stars { color: hsl(45,100%,60%); font-size: 1.1rem; letter-spacing: 3px; }
.pr-score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--text); }
.pr-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.prod-num   { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: -8px; }
.prod-cat   { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--world); margin-bottom: 4px; }
.prod-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.prod-body  { font-size: 0.97rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }

.prod-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}
.ppc-pros, .ppc-cons {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 16px 18px;
    border: 1px solid var(--bd);
}
.ppc-pros { border-color: hsla(142,71%,55%,0.2); }
.ppc-cons { border-color: hsla(45,100%,60%,0.15); }
.ppc-title { font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.ppc-pros ul, .ppc-cons ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ppc-pros li, .ppc-cons li { font-size: 0.83rem; color: var(--muted); padding-left: 12px; position: relative; line-height: 1.45; }
.ppc-pros li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: hsl(142,71%,55%); }
.ppc-cons li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: hsl(45,100%,60%); }

.prod-specs {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 16px;
}
.ps-item { display: flex; flex-direction: column; gap: 3px; }
.ps-label { font-size: 0.7rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.ps-val   { font-size: 0.9rem; font-weight: 600; color: var(--text); }

.btn-aff { border-radius: 12px; }

/* ---- STACK BOX ---- */
.stack-box {
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 20px;
    padding: 40px;
}
.stack-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.stack-desc  { font-size: 0.95rem; color: var(--muted); margin-bottom: 28px; }
.stack-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stack-item  {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 20px;
    display: flex; flex-direction: column; gap: 6px;
    transition: border-color 0.25s ease;
}
.stack-item:hover { border-color: var(--world-bd); }
.si-goal  { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--world); }
.si-stack { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.si-why   { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ---- RELATERADE ---- */
.rel-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.rel-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.rel-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.rel-card:hover { transform: translateY(-3px); }
.rel-train:hover { border-color: hsla(142,71%,55%,0.3); }
.rel-music:hover { border-color: hsla(263,85%,65%,0.35); }
.rel-app:hover   { border-color: hsla(188,91%,53%,0.3); }
.rel-icon  { font-size: 1.8rem; flex-shrink: 0; }
.rel-name  { font-weight: 700; font-size: 0.95rem; margin-bottom: 3px; }
.rel-desc  { font-size: 0.82rem; color: var(--muted); }
.rel-arrow { margin-left: auto; color: var(--world); font-size: 1.1rem; flex-shrink: 0; }

/* ---- JÄMFÖRELSETABELL (hosting) ---- */
.compare-table {
    background: var(--bg-card);
    border: 1px solid var(--bd);
    border-radius: 20px;
    overflow: hidden;
}
.ct-head {
    display: grid;
    grid-template-columns: 160px repeat(3,1fr);
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--bd);
}
.ct-row {
    display: grid;
    grid-template-columns: 160px repeat(3,1fr);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ct-row:last-child { border-bottom: none; }
.ct-cta-row { background: rgba(255,255,255,0.02); }
.ct-col {
    padding: 14px 16px;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.ct-col:last-child { border-right: none; }
.ct-label {
    justify-content: flex-start;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}
.ct-loopia, .ct-onecom, .ct-miss {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--world);
}
.ct-btn {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
    background: var(--world-bg);
    border: 1px solid var(--world-bd);
    color: var(--world);
}
.ct-btn:hover { transform: translateY(-2px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .aff-cats-grid, .top-picks-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .prod-card { grid-template-columns: 1fr; }
    .prod-img-col { position: static; max-width: 320px; margin: 0 auto; width: 100%; }
    .qp-grid, .stack-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .aff-hero    { padding: 130px 20px 80px; }
    .aff-cats-section, .aff-top-section { padding: 70px 20px; }
    .art-hero    { padding: 120px 20px 60px; }
    .art-section { padding: 60px 20px; }
    .art-title   { font-size: 2rem; }
    .quick-picks { padding: 24px; }
    .stack-box   { padding: 28px 24px; }
    .rel-grid    { grid-template-columns: 1fr; }
    .prod-pros-cons { grid-template-columns: 1fr; }
    .prod-specs { grid-template-columns: 1fr 1fr; }
    .aff-disclosure { padding: 12px 20px; }
    .ct-head, .ct-row { grid-template-columns: 100px repeat(3,1fr); }
    .ct-col { padding: 10px 10px; font-size: 0.78rem; }
    .aff-cats-grid, .top-picks-grid { max-width: 100%; }
}

@media (max-width: 480px) {
    .aff-hero-title { font-size: 2rem; }
    .prod-pros-cons { grid-template-columns: 1fr; }
    .ct-head, .ct-row { grid-template-columns: 80px repeat(3,1fr); }
    .ct-col { padding: 8px 6px; font-size: 0.72rem; }
}
