/* ===========================================================
   ОБЩИЙ БЛОК
   =========================================================== */

.gg-similar-block {
    margin: 26px 0;
    padding: 18px 20px;
    background: #f5f7fb;
    border-radius: 16px;
}

/* заголовок блока */
.gg-similar-block .gg-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

/* ===========================================================
   ПОИСК
   =========================================================== */

.gg-search-wrapper {
    margin-bottom: 14px;
}

#gg-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    background: #fafafa;
}

/* ===========================================================
   СПИСОК ИГР
   =========================================================== */

.gg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* карточка игры */
.gg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 10px rgba(15,23,42,0.05);
    text-decoration: none !important;
}

.gg-item:hover {
    background: #f9fafb;
}

/* обложка */
.gg-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

/* подписи */
.gg-meta {
    display: flex;
    flex-direction: column;
}

.gg-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 3px;
}

.gg-codes {
    font-size: 14px;
    color: #6b7280;
}

/* если пусто */
.gg-empty {
    margin-top: 6px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

/* ===========================================================
   КНОПКА "ПРЕДЛОЖИТЬ ИГРУ"
   =========================================================== */

.gg-propose-trigger {
    display: block;
    margin: 16px auto 0;
    padding: 8px 18px;

    background: #17a2b8;
    color: #ffffff;

    border-radius: 8px;
    border: none;

    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.gg-propose-trigger:hover {
    background: #138496;
}

/* ===========================================================
   МОДАЛКА "ПРЕДЛОЖИТЬ ИГРУ"
   =========================================================== */

/* оверлей — НЕТ затемнения, просто слой поверх страницы */
.gg-propose-overlay {
    display: none;              /* скрыто по умолчанию */
    position: fixed;
    inset: 0;
    background: transparent;    /* как ты просил — без затемнения */
    z-index: 999999;
}

/* само окно — фиксированное по центру экрана */
.gg-propose-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 340px;
    max-width: 92%;

    background: #ffffff;
    border-radius: 16px;
    padding: 22px 26px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 1000000;
}

/* крестик закрытия */
.gg-close-x {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    font-weight: 700;
    transition: color .15s ease;
}

.gg-close-x:hover {
    color: #000;
}

/* заголовок модалки */
.gg-propose-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

/* поле ввода */
.gg-propose-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fafafa;
    margin-bottom: 16px;
}

/* футер с кнопками */
.gg-propose-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* базовая кнопка внутри модалки */
.gg-btn {
    min-width: 110px;
    height: 38px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* зелёная — Отправить */
.gg-btn-green {
    background: #22c55e;
    color: #ffffff;
}
.gg-btn-green:hover {
    background: #16a34a;
}

/* красная — Закрыть */
.gg-btn-red {
    background: #ef4444;
    color: #ffffff;
}
.gg-btn-red:hover {
    background: #dc2626;
}

/* ===========================================================
   TOAST "СПАСИБО, ИГРА ПРЕДЛОЖЕНА"
   =========================================================== */

.gg-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);

    background: #ffffff;
    padding: 12px 20px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 22px rgba(0,0,0,0.15);

    font-size: 15px;
    font-weight: 600;
    color: #111827;

    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
    z-index: 1000000;
}

.gg-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================================================
   АДАПТИВ
   =========================================================== */

@media (max-width: 480px) {
    .gg-similar-block {
        padding: 14px 12px;
    }

    .gg-thumb {
        width: 60px;
        height: 60px;
    }

    .gg-propose-modal {
        width: 92%;
        padding: 18px 16px;
    }
}

