
body.hbdom-lock {
    overflow: hidden;
}

/* Layout */

.hbdom-wrap {
    max-width: 1080px !important;
    margin: auto;
    color: #eaeaea;
}

/* Haku */

.hbdom-search {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hbdom-search input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #111;
    color: white;
    outline: none;
    transition: 0.2s;
}

.hbdom-search input:focus {
    border-color: #444;
}

.hbdom-search input::placeholder {
    color: #666;
}

.hbdom-search button {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    color: white;
    padding: 14px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.hbdom-search button:hover {
    background: #2a2a2a;
}

/* Tilastot */

.hbdom-stats {
    margin-bottom: 25px;
}

.hbdom-stats button {
    background: linear-gradient(135deg, #ff3b3b, #b30000);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(255,0,0,0.35);
}

/* Grid */

.hbdom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
}

/* Kortit */

.hbdom-item {
    background: #121212;
    border-radius: 8px;
    padding: 18px;
    border: 1px solid #1f1f1f;
    box-shadow: 0 10px 35px rgba(0,0,0,0.45);
    transition: 0.25s;
    position: relative;
}

.hbdom-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 55px rgba(0,0,0,0.7);
}

.hbdom-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.hbdom-item h3 {
    color: white;
    margin: 8px 0 4px;
    font-size: 18px;
}

.hbdom-item p {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
}

/* Lue lisää */

.hbdom-readmore-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #ff3b3b, #b30000);
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

/* ✅ SHARE LINKS – PUNAINEN GRADIENTTI 🔥 */

.hbdom-share {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hbdom-share a {
    background: linear-gradient(135deg, #ff3b3b, #b30000);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    transition: 0.2s;
    box-shadow: 0 6px 18px rgba(255,0,0,0.35);
}

.hbdom-share a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(255,0,0,0.55);
}

/* Lataa lisää */

.hbdom-loadmore-wrap {
    margin-top: 25px;
    text-align: center;
}

.hbdom-loadmore-wrap button {
    background: linear-gradient(135deg, #ff3b3b, #b30000);
    border: none;
    color: white;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.2s;
}

/* Modal */

.hbdom-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.hbdom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hbdom-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
}

/* Modal box */

.hbdom-modal-box {
    position: relative;
    background: #121212;
    width: 1080px;
    max-width: 960px;
    max-height: 85vh;
    border-radius: 8px;
    border: 1px solid #1f1f1f;
    overflow-y: auto;
    padding: 35px;
    box-shadow: 0 35px 120px rgba(0,0,0,0.9);
}

/* Close */

.hbdom-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
}

/* Modal layout */

.hbdom-modal-inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.hbdom-modal-content {
    flex: 1;
    color: #eaeaea;
}

/* Hashtagit */

.hbdom-modal-tags {
    width: 220px;
    flex-shrink: 0;
}

.hbdom-modal-tags:empty {
    display: none;
}

.hbdom-modal-tags span {
    display: inline-block;
    background: #1c1c1c;
    padding: 6px 10px;
    border-radius: 8px;
    margin: 4px;
    font-size: 13px;
    border: 1px solid #2a2a2a;
    transition: 0.2s;
}

.hbdom-modal-tags span:hover {
    background: white;
    color: black;
}
