/* Mywk.Net reviews.
   Part 1 is a copy of mywk.net/css/style.css (keep both in sync), part 2 is review-specific.
   Background images are loaded from the main site (/img/1.jpg, /img/2.jpg). */

:root {
    --bg: #140720;
    --link: rgb(188, 150, 223);
    --link-hover: rgb(174, 118, 225);
    --font-body: Verdana, sans-serif;
    --font-heading: Oswald, sans-serif;

    /* Slideshow: each image shown 6.5s, cross-fade 3s, full cycle 19s.
       To change it: cycle = 2 x (hold + fade), then recompute the
       percentages in @keyframes slide-fade below. */
    --slide-cycle: 19s;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.43;
}

h3,
h4,
p {
    margin: 0;
    font-weight: 400;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.link-custom {
    color: var(--link);
    transition: color 0.3s;
}

.link-custom:hover {
    color: var(--link-hover);
}

/* ---------- Background slideshow ---------- */

.slideshow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.slideshow > div {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slideshow > div:first-child {
    background-image: url("/img/1.jpg");
}

.slideshow > div:last-child {
    background-image: url("/img/2.jpg");
    opacity: 0;
    animation: slide-fade var(--slide-cycle) ease-in-out infinite;
}

@keyframes slide-fade {
    0%, 34.2%  { opacity: 0; }   /* image 1 visible */
    50%, 84.2% { opacity: 1; }   /* fade in, image 2 visible */
    100%       { opacity: 0; }   /* fade back to image 1 */
}

/* ---------- Header / footer ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
}

.brand img {
    width: 32px;
    height: 32px;
}

.site-footer {
    position: relative;
    z-index: 10;
    padding: 10px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
}

/* ---------- Main content ---------- */

.content {
    position: relative;
    z-index: 10;
    flex: 1;
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 70px 15px 40px;
}

/* Home: welcome box */
.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0 20px;
    padding: 0 15px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.welcome .logo img {
    width: 140px;
    height: 140px;
    margin: 30px 0 10px;
    border-radius: 20px;
    transition: all 0.5s;
}

.welcome .logo:hover img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.welcome h3 {
    margin: 8px 0 4px;
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 50px;
}

.welcome h4 {
    margin: 10px 0;
    font-size: 18px;
    line-height: 1.25;
}

/* Home: 2x2 image buttons */
.links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 49px 40px;
    margin-top: 20px;
    animation-delay: 0.2s;
}

/* Static PNG on top, animated GIF revealed on hover/focus */
.btn-swap {
    position: relative;
    display: block;
    width: 140px;
    height: 140px;
    margin: 5px;
}

.btn-swap img {
    position: absolute;
    inset: 0;
    width: 140px;
    height: 140px;
    border-radius: 20px;
}

.btn-swap .static-img {
    z-index: 1;
    background: #fff;
    transition: all 0.5s;
}

.btn-swap .active-img {
    opacity: 0;
    transition: all 0.3s;
}

.btn-swap:hover .static-img,
.btn-swap:focus-visible .static-img {
    opacity: 0;
    transform: scale(1.08);
    filter: brightness(1.1);
    transition-duration: 0.3s;
}

.btn-swap:hover .active-img,
.btn-swap:focus-visible .active-img {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Text pages: imprint, privacy */
.article {
    max-width: 660px;
    margin: 10px auto 60px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.article h3 {
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: 24px;
}

.article h4 {
    margin: 28px 0 10px;
    font-size: 18px;
}

.article p {
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .article {
        padding: 20px;
    }
}

.btn-back {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 28px;
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-back:hover,
.btn-back:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ---------- Animations ---------- */

.fade-in-up {
    animation: fade-in-up 0.8s ease-out both;
}

.links.fade-in-up {
    animation-delay: 0.2s;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow > div:last-child,
    .fade-in-up {
        animation: none;
    }
}


/* =====================================================================
   Part 2: reviews
   ===================================================================== */

:root {
    --yes: #56d364;
    --yes-bg: rgba(46, 160, 67, 0.18);
    --no: #ff7b72;
    --no-bg: rgba(248, 81, 73, 0.18);
    --muted: rgba(255, 255, 255, 0.6);
}

/* Hero (home) */
.hero {
    max-width: 900px;
    margin: 10px auto 0;
}

.hero h1 {
    margin: 30px 0 6px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
}

.hero p {
    margin: 0 0 6px;
    font-size: 16px;
}

.hero .notice {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    max-width: 640px;
}

/* Review cards (home) */
.cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 30px auto 0;
}

.card {
    display: flex;
    overflow: hidden;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 0.7rem 2.3rem rgba(0, 0, 0, 0.25);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.2s;
}

.card:hover,
.card:focus-visible {
    transform: translateY(-4px);
    background-color: rgba(0, 0, 0, 0.62);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.4);
}

.card-img {
    flex: 0 0 300px;
    margin: 8px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.card-body {
    flex: 1;
    padding: 26px 30px;
}

.card-body h2 {
    margin: 0 0 10px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--link);
    transition: color 0.2s;
}

.card:hover .card-body h2 {
    color: var(--link-hover);
}

.card-body p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.6;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    font-size: 13px;
    color: var(--muted);
}

/* Verdict badge: "Would I recommend: Yes / No" */
.verdict {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid currentColor;
    font-size: 13px;
}

.verdict b {
    font-weight: 700;
}

.verdict.yes {
    color: var(--yes);
    background-color: var(--yes-bg);
}

.verdict.no {
    color: var(--no);
    background-color: var(--no-bg);
}

.verdict-label {
    color: #fff;
}

/* Pagination */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 30px auto 0;
}

.pager .btn-back {
    margin: 0;
}

/* Single review */
.review {
    max-width: 860px;
}

.review h1 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.25;
}

.review .meta {
    margin-bottom: 8px;
}

.review .verdict {
    font-size: 15px;
    padding: 5px 16px;
}

.review .affiliate-note {
    margin: 0 0 20px;
    font-size: 12px;
    color: var(--muted);
}

.review .cover {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 440px;
    margin: 0 auto 24px;
    border-radius: 14px;
}

.facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 20px;
    margin: 0 0 24px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
}

.review-body {
    font-size: 15px;
    line-height: 1.7;
}

.review-body h2,
.review-body h3 {
    margin: 28px 0 10px;
    font-family: var(--font-heading);
    font-weight: 400;
}

.review-body a {
    color: var(--link);
}

.review-body img {
    border-radius: 12px;
    margin: 16px 0;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 8px;
}

.pros-cons > div {
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.pros-cons h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.pros-cons .pros h3 { color: var(--yes); }
.pros-cons .cons h3 { color: var(--no); }

.pros-cons ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.6;
}

.footnote {
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 700px) {
    .card {
        flex-direction: column;
    }

    .card-img {
        flex-basis: auto;
    }

    .card-img img {
        aspect-ratio: 3 / 2;
        height: auto;
    }

    .card-body {
        padding: 18px 20px 22px;
    }

    .pros-cons {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 24px;
    }
}
