#mai-napom-wrapper {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    box-sizing: border-box;
}
#mai-napom-list {
    display: flex;
    align-items: center;
}
#mai-napom-upload-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px dashed lime; /* lime zöld, vékony, szaggatott */
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    animation: rotateBorder 5s linear infinite; /* csak a szegély forog */
}
#mai-napom-upload-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Ellensúlyozó animáció: kép ne forogjon */
    animation: rotateBorderReverse 5s linear infinite;
}
#mai-napom-upload-icon .mai-napom-plus {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: rgba(255,255,255,0.7);
    /* Ellensúlyozó animáció: plusz jel ne forogjon */
    animation: rotateBorderReverse 5s linear infinite;
}
#mai-napom-upload-icon:hover::after {
    content: "+Feltöltés";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}
/* Rotate border */
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Ellensúlyozó animáció a gyermek elemeknél */
@keyframes rotateBorderReverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.mai-napom-item {
    display: inline-block;
    width: 70px;
    height: 70px;
    border: 2px dashed orangered; /* orangered, vékony, szaggatott, nem forog */
    border-radius: 50%;
    margin-right: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    animation: none; /* ne forogjon */
}
.mai-napom-item img, .mai-napom-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mai-napom-item .delete-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    z-index: 2;
}

/* Modal backdrop */
#mai-napom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#mai-napom-modal-content {
    background: transparent;
    padding: 10px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header: avatar, name, close */
#mai-napom-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}
#mai-napom-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    cursor: pointer;
}
#mai-napom-author-name {
    font-size: 18px;
    cursor: pointer;
}
#mai-napom-close {
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* Body: media and sidebar */
#mai-napom-body {
    display: flex;
    align-items: flex-start;
}
#mai-napom-media {
    max-width: 400px;
    max-height: 400px;
    border-radius: 8px;
    background: #000;
}
#mai-napom-media img, #mai-napom-media video {
    max-width: 400px;
    max-height: 400px;
    border-radius: 8px;
}
#mai-napom-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 10px;
}
#mai-napom-reactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}
#mai-napom-reactions span {
    font-size: 24px;
    margin: 5px 0;
    cursor: pointer;
    color: white;
    opacity: 0.5;
    transition: opacity 0.2s;
}
#mai-napom-reactions span.active {
    opacity: 1;
}
#mai-napom-views {
    font-size: 20px;
    margin-top: 10px;
    display: flex;
    align-items: center;
}
#mai-napom-views span {
    margin-left: 5px;
}
#mai-napom-delete {
    cursor: pointer;
    font-size: 20px;
    color: white;
    margin-top: 10px;
    display: none;
}

/* Buttons under media */
#mai-napom-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
#mai-napom-buttons button {
    margin: 0 5px;
    padding: 5px 10px;
    cursor: pointer;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

/* Input/Küldés gomb a hozzászólásnál */
#mai-napom-wrapper button[type=submit],
#mai-napom-wrapper input[type=submit] {
  background: linear-gradient(to bottom, orangered, black) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

/* Countdown */
#mai-napom-countdown {
    margin-top: 8px;
    font-size: 16px;
    text-align: center;
}

/* Comments list */
#mai-napom-comments {
    margin-top: 10px;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    margin-bottom: 10px;
}
#mai-napom-comments .comment {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}
#mai-napom-comments .comment strong {
    color: orangered;
}
#mai-napom-comments .comment span {
    color: white;
    margin-left: 4px;
}
#mai-napom-comments .delete-comment {
    margin-right: 8px;
    color: red;
    cursor: pointer;
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    #mai-napom-body {
        flex-direction: column;
        align-items: center;
    }
    #mai-napom-sidebar {
        flex-direction: row;
        margin-left: 0;
        margin-top: 10px;
    }
    #mai-napom-reactions {
        flex-direction: row;
    }
    #mai-napom-reactions span {
        margin: 0 8px;
    }
    #mai-napom-views {
        margin-top: 10px;
    }
}

/* Ha NEM vagy bejelentkezve, rejtsd el a Hozzászólás-gombot */
body:not(.logged-in) #mai-napom-add-comment {
    display: none !important;
}

/* == Plugin módosítás: feltöltési ikon és képek szegélyének színei == */

/* 1) Feltöltési ikon (#mai-napom-upload-icon) - lime zöld, vékony, szaggatott, forog */
#mai-napom-upload-icon {
    border: 2px dashed lime !important;
    animation: rotateBorder 5s linear infinite !important;
}
/* A gyermek elemek (kép és plusz jel) ne forogjanak a szegéllyel együtt */
#mai-napom-upload-icon img,
#mai-napom-upload-icon .mai-napom-plus {
    animation: rotateBorderReverse 5s linear infinite !important;
}

/* 2) Feltöltött képek (.mai-napom-item) - orangered, vékony, szaggatott, nem forog */
.mai-napom-item {
    border: 2px dashed orangered !important;
    animation: none !important;
}

/* ------------------------------------------------------------
   MAI Napom: Hozzászólás, Bezárom és Küldés gombok stílusa
   ------------------------------------------------------------ */

/* 1) Hozzászólás gomb (#mai-napom-add-comment) */
#mai-napom-add-comment {
  background: linear-gradient(to bottom, orangered, black) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

/* 2) Bezár gomb (#mai-napom-close) */
#mai-napom-close {
  background: linear-gradient(to bottom, orangered, black) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

/* 3) Küldés gomb (#mai-napom-buttons button) */
#mai-napom-buttons button {
  background: linear-gradient(to bottom, orangered, black) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 6px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

/* Hover‐effekt mindhárom gombra */
#mai-napom-add-comment:hover,
#mai-napom-close:hover,
#mai-napom-wrapper button[type=submit]:hover,
#mai-napom-wrapper input[type=submit]:hover,
#mai-napom-buttons button:hover {
  opacity: 0.9 !important;
}
/* -------------------------------------------------------------
   Csak a hozzászólásnál megjelenő “Küldés” gomb stílusát módosítjuk,
   hogy orangered→black színátmenetes, fehér feliratú gomb legyen. 
   A többi szabály változatlan marad. 
   ------------------------------------------------------------- */

#mai-napom-wrapper form button[type="submit"],
#mai-napom-wrapper form input[type="submit"] {
    background: linear-gradient(to bottom, orangered, black) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
}

#mai-napom-wrapper form button[type="submit"]:hover,
#mai-napom-wrapper form input[type="submit"]:hover {
    opacity: 0.9 !important;
}
#mai-napom-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden; /* függőleges gördítősáv elrejtése */
    white-space: nowrap;
    padding: 10px;
    box-sizing: border-box;
}

/* ——————————————————————————
   1) Alap-stílusok: 
   töröljük a korábbi width:100%-et, 
   és bekapcsoljuk, hogy a gyerekek ne nyúljanak-beflexáljanak
   —————————————————————————— */
#mai-napom-wrapper {
    /* ne legyen se fixed width:100%, csak max-width */
    width: auto !important;
    max-width: none !important;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px !important;     /* ugyanaz a padding, mint eredetileg */
    box-sizing: border-box;
}

#mai-napom-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* Az ikon és a kép-itemek ne legyenek rugalmasan nyújthatók vagy zsugoríthatók:
   fix méretük van (ikon: 50×50 + 10px margin, kép: 70×70 + 10px margin)
*/
#mai-napom-upload-icon,
.mai-napom-item {
    flex: 0 0 auto;
}

/* ——————————————————————————
   2) Mobil nézet (max-width: 768px): 
   Az ikon + 5 db kép férjen el vízszintesen:
   - ikon: 50px széles + 10px margin-right = 60px
   - 5 kép: (5 × 70px) + (5 × 10px margin-right) = 350px + 50px = 400px
   - padding bal + jobb: 10px + 10px = 20px
   ÖSSZESEN: 60 + 400 + 20 = 480px
   —————————————————————————— */
@media screen and (max-width: 768px) {
  #mai-napom-wrapper {
    max-width: 480px !important;
  }
}

/* ——————————————————————————
   3) Asztali nézet (min-width: 769px):
   Az ikon + 13 db kép férjen el vízszintesen:
   - ikon: 60px (50px + 10px margin-right)
   - 13 kép: (13 × 70px) + (13 × 10px margin-right) = 910px + 130px = 1040px
   - padding: 20px
   ÖSSZESEN: 60 + 1040 + 20 = 1120px
   —————————————————————————— */
@media screen and (min-width: 769px) {
  #mai-napom-wrapper {
    max-width: 1120px !important;
  }
}
/* 1. Töröljük a natív görgetősávot (Chrome, Edge, Safari) */
#mai-napom-wrapper::-webkit-scrollbar {
  display: none;
}

/* 2. Töröljük a natív görgetősávot (Firefox, IE) */
#mai-napom-wrapper {
  -ms-overflow-style: none;  /* IE/Edge */
  scrollbar-width: none;     /* Firefox */
}

/* 3. Bekapcsoljuk a smooth scroll-t */
#mai-napom-wrapper {
  overflow-x: auto;           /* vízszintes görgetést engedélyezzük */
  scroll-behavior: smooth;    /* sima animált görgetés */
  white-space: nowrap;
  /* (további stílusokat, paddinget, flex beállítást hagyd változatlanul) */
}
