:root {
    --yt-count: "";      /* YouTube */
    --fb-count: "Facebook";  /* Facebook */
    --ig-count: "Instagram"; /* Instagram */
    --tt-count: "TikTok";    /* TikTok */
    --pn-count: "Pinterest"; /* Pinterest */
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f6f7;
  color: #2b2b2b;
}

.site-footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #666;
    width: 100%;
    clear: both;
    line-height: 1.5;
    margin: 0;
}


/* YouTube ikon stílusa */
.youtube-icon {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23FF0000" xmlns="http://www.w3.org/2000/svg"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.2s ease-in-out;
}

.youtube-icon:hover {
    transform: scale(1.15); /* Enyhe nagyítás rámutatáskor */
}

.video-links-wrapper {
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-top: 5px; 
    justify-content: center;
}


.youtube-sub-button::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}


.youtube-sub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e60000;
    color: white !important;
    padding: 0 0 0 10px; 
    height: 44px;
    border-radius: 8px;
    margin-top: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s cubic-bezier(0.05, 0, 0, 1);
    border: 1px solid #cc0000; 
    overflow: hidden; 
    cursor: pointer;

    /* A meglévő kódod marad, csak ezt az egy sort add hozzá: */
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
0% {
box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7);
    }
80% {
box-shadow: 0 0 0 5px rgba(230, 0, 0, 0);
    }
100% {
box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
    }
}

.yt-subs-count {
    background-color: white;
    color: #333;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
    margin-left: 10px; 
    font-size: 14px;
    font-weight: 700;
    border-left: 1px solid #cc0000; 
}


.yt-subs-count::after {
content: "\1F514 \A " var(--yt-count);
white-space: pre;
display: block;
text-align: center;
font-size: 13px;
color: #606060;
font-weight: bold;
}


.youtube-sub-button:hover {
    background-color: #cc0000;
}

.youtube-sub-button:active {
    background-color: #990000;
}


.sidebar-social {
  margin-top: 40px;
  text-align: center;
}

.sidebar-social-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* A linkek távolsága mindenhol (social, support és az új kofi-link) */
.sidebar-social a, 
.sidebar-support a,
.kofi-image-link {
  display: inline-block;
  margin: 0 5px;
  text-decoration: none;
  vertical-align: top;
}

/* Az összes ikon alapállapota + az új kofi-img osztály */
.sidebar-social img, 
.sidebar-support img,
.kofi-img {
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

/* Csak a kisméretű social ikonok legyenek fixen 32 pixel szélesek */
.sidebar-social img {
  width: 32px;
}

/* Hover effekt minden ikonra + az új osztályra */
.sidebar-social img:hover, 
.sidebar-support img:hover,
.kofi-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.sc-fb::after, .sc-ig::after, .sc-tt::after, .sc-pn::after {
    display: block; /* Ez teszi az ikon alá a számot */
    font-size: 10px;
    font-weight: 600;
    color: #666;
    margin-top: 5px;
    font-family: sans-serif;
}

.sc-fb::after { content: var(--fb-count); }
.sc-ig::after { content: var(--ig-count); }
.sc-tt::after { content: var(--tt-count); }
.sc-pn::after { content: var(--pn-count); }


a { text-decoration: none; color: inherit; }

header {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}


.logo img { height: 60px; width: auto; margin-bottom: 10px; }

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

nav a {
  padding: 5px 10px;
  font-size: 14px;
  color: #355f4b;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.3s;
}

nav a:hover { color: #4a6f5a; }

.activemenu {
  color: #2f5d46;
  font-weight: 600;
  border-bottom: 3px solid #2f5d46;
  padding-bottom: 6px;
}

.container {
  max-width: 1300px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 15px;
  text-align: justify;
}

main { width: 100%; }

h1 { font-size: 28px; margin-top: 0; }
.intro { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 25px; }

.product-card-horizontal {
  background: white;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #eef2f0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  text-align: justify;
}

.product-info-left {
  flex: 1;
}

.product-info-left h3 { margin-top: 0; font-size: 18px; }

.product-media-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-media-right img {
  width: 100%;
  max-width: 300px;
  max-height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto 12px auto;
  border-radius: 16px;
}

.video-links {
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.video-link-title {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 6px;
}

.video-link {
  display: block;
  margin: 4px 0;
  font-size: 0.95rem;
}

.video-timestamp-top {
  background: #4a6f5a;
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
}

.video-ratio-wrapper {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: #000;
}

.video-ratio-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}

.btn {
  display: inline-block;
  background: #4a6f5a;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  margin: 10px auto; /* Kicsit több szabadság a margónak */
  text-decoration: none; /* Hogy ne legyen aláhúzva a link */
  text-align: center;
}

.btn:hover {
    background-color: #3d5647;
}


.affiliate-tiny { font-size: 11px; color: #888; margin-top: 15px; }



.sidebar {
  background: #ffffff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  width: 100%;
}

.sidebar-content-top { text-align: center; }

.sidebar .note {
  font-size: 13px; color: #666; line-height: 1.6;
  border-top: 1px solid #eee; padding-top: 15px; margin-top: 15px;
}



@media (min-width: 901px) {
  header {
    flex-direction: row;
    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    padding: 10px 50px;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  nav {
    grid-column: 2;
    display: flex;
    gap: 25px;
    width: auto;
  }
  
  .container { flex-direction: row; align-items: flex-start; margin: 40px auto; }

  .sidebar {
    position: fixed;
    top: 110px;
    width: 280px;
    right: 15px;
  }


  main {
    margin-right: 300px;
  }

  .product-card-horizontal {
    flex-direction: row;
    align-items: center;
    gap: 30px;
  }

  .product-media-right {
    width: 380px;
    flex-shrink: 0;
  }

  h1 { font-size: 36px; }
}

.video-horizontal {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f0;
    overflow: hidden;
}

.video-horizontal .card-body {
    padding: 25px;
}

.video-horizontal h3 { margin-top: 0; font-size: 18px; }

.video-horizontal .video-container {
    position: relative;
    width: 90%;
    padding-top: 56.25%;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.video-horizontal .video-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 901px) {

    .video-horizontal {
        flex-direction: row;
        align-items: center;
    }

    .video-horizontal .video-container {
        width: 400px;
        padding-top: 0;
        aspect-ratio: 16 / 9;
        margin: 20px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .video-horizontal .video-container iframe {
        position: static;
        width: 100%;
        height: 100%;
    }
}