/* FitNotMyth Homepage Plugin – style.css */

/* ── MOBILE FIRST (default) ── */
.fnm-wrap {
    padding: 20px 12px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fnm-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.fnm-card {
    background: #faf7f2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
}

.fnm-card__title {
    padding: 14px 16px 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.fnm-card__title a {
    color: #1e2a22;
    text-decoration: none;
}

.fnm-card__title a:hover { color: #4a7c59; }

.fnm-card__img-wrap { display: block; }

.fnm-card__img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    display: block;
}

.fnm-card__foot {
    padding: 10px 16px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fnm-card__date { font-size: .74rem; color: #7a8c7e; }

.fnm-card__more {
    font-size: .8rem;
    font-weight: 600;
    color: #4a7c59;
    text-decoration: none;
}

.fnm-card__more:hover { text-decoration: underline; }

/* SIDEBAR */
.fnm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.fnm-box {
    background: #faf7f2;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
}

.fnm-box__hd {
    background: #5bbcb8;
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    padding: 13px 18px;
}

.fnm-box__bd {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fnm-nl__desc {
    font-size: .8rem;
    color: #7a8c7e;
    line-height: 1.5;
    margin: 0;
}

.fnm-nl__form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.fnm-nl__form input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #dde8e1;
    border-radius: 4px;
    font-family: inherit;
    font-size: .84rem;
    outline: none;
    background: #fff;
    color: #1e2a22;
    transition: border-color .15s;
}

.fnm-nl__form input:focus { border-color: #5bbcb8; }

.fnm-nl__form button {
    width: 100%;
    padding: 11px;
    background: #5bbcb8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
}

.fnm-nl__form button:hover { background: #4aa8a4; }

.fnm-nl__msg { font-size:.82rem; margin:4px 0 0; padding:8px 12px; border-radius:4px; }
.fnm-nl__msg--ok { background:#e6f4f0; color:#2d7a5f; border:1px solid #b2ddd5; }

.fnm-list { list-style:none; margin:0; padding:0; }

.fnm-list__item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    text-decoration: none;
    color: #1e2a22;
    border-bottom: 1px solid #dde8e1;
    transition: background .15s;
}

.fnm-list__item:last-child a { border-bottom: none; }
.fnm-list__item a:hover { background: #f0f7f3; }

.fnm-list__img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 4px;
    flex-shrink: 0;
}

.fnm-list__text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.fnm-list__text span { font-size:.8rem; font-weight:500; line-height:1.35; color:#1e2a22; }
.fnm-list__text small { font-size:.71rem; color:#7a8c7e; }

/* ── DESKTOP — settings vrednosti se primenjuju samo ovde ── */
@media (min-width: 721px) {
    .fnm-wrap {
        display: grid;
        grid-template-columns: 1fr 300px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 16px 60px;
        gap: 28px;
        align-items: start;
    }

    .fnm-card__img { height: 240px !important; }
    .fnm-card__title { font-size: 1.05rem; padding: 16px 20px 10px; }
    .fnm-card__foot { padding: 10px 20px 16px; }
}
