/* [admax_widget_elonezet] — főoldali widget-előnézet: élő mintás kártyák + „egyeztetés alapján” címkék + gomb a galériához. */

.am-widgetek {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: 'Space Grotesk', Arial, sans-serif;
}

.am-widgetek__racs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 18px;
}

/* ---- Kártya ---- */
.am-widget-kartya {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid #dbeae3;
    border-radius: 20px;
    transition: border-color .35s ease, box-shadow .45s cubic-bezier(.16, .84, .3, 1);
}

.am-widget-kartya:hover {
    border-color: #A7EBDD;
    box-shadow: 0 22px 48px rgba(11, 24, 21, .10);
}

/* Élő minta: ugyanaz a demó HTML, mint a galérián, kis böngészőkeretben. */
.am-widget-kartya__demo {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbeae3;
    border-radius: 14px;
}

.am-widget-kartya__bongeszo {
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    background: #F1F7F4;
    border-bottom: 1px solid #dbeae3;
}

.am-widget-kartya__bongeszo i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #A7C2BA;
}

.am-widget-kartya__keret {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
    background: #fff;
}

.am-widget-kartya__cim {
    font-family: 'Archivo', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: #1E3A38;
}

.am-widget-kartya__szoveg {
    margin: 6px 0 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.55;
    color: #5c7b73;
}

.am-widget-kartya__tovabb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #2C8B74;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: gap .3s ease;
}

.am-widget-kartya__tovabb:hover {
    gap: 13px;
}

/* ---- Lábléc: további formátumok + gomb ---- */
.am-widgetek__lablec {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 19px;
    padding-top: 28px;
    border-top: 1px solid #dbeae3;
}

.am-widgetek__elerheto {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.am-widgetek__megjegyzes {
    font-size: 13px;
    font-weight: 700;
    color: #5c7b73;
}

.am-widgetek__chip {
    padding: 9px 16px;
    border-radius: 100px;
    background: #fff;
    border: 1px solid #dbeae3;
    color: #16332E;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

a.am-widgetek__chip:hover {
    background: #1E3A38;
    color: #fff;
    transform: translateY(-2px);
}

/* A gomb a btn-primary stílusa (gomb-widget.css). */
.am-widgetek__gomb {
    display: inline-block;
    padding: 16px 30px;
    border-radius: 100px;
    background: #1E3A38;
    box-shadow: 0 14px 32px rgba(30, 58, 56, .22);
    color: #fff;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease;
}

.am-widgetek__gomb:hover,
.am-widgetek__gomb:focus {
    background: #2C8B74;
    color: #fff;
    transform: translateY(-2px);
}

.am-widget-kartya__tovabb:focus-visible,
.am-widgetek__chip:focus-visible,
.am-widgetek__gomb:focus-visible {
    outline: 2px solid #2C8B74;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .am-widget-kartya {
        padding: 18px;
    }

    .am-widget-kartya__keret {
        height: 300px;
    }

    .am-widgetek__chip {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .am-widget-kartya,
    .am-widget-kartya__tovabb,
    .am-widgetek__chip,
    .am-widgetek__gomb {
        transition: none;
    }

    .am-widgetek__gomb:hover,
    a.am-widgetek__chip:hover {
        transform: none;
    }
}
