/**
 * Vladislav Minaev (@v1adjkee666)
 * bass.gx25@gmail.com
 * Связь: t.me/v1adjkee666
 */

.modal-gifts .modal-content {
    padding: 20px 20px 30px 20px;
}

.gift_services_row {
    margin-top: 12px;
}

.gift_services_hint {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.75;
}

.gift_skin_image {
    display: block;
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

#gift_skin_info,
#gift_service_info {
    min-height: 60px;
}

.gift-service-btn,
.gift-skin-btn {
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    transition: background 0.2s ease;
}

.gift-service-btn {
    background: #6c97d4 !important;
    border: solid 1px #6c97d430 !important;
    animation: gift-service-glow 2.2s ease-in-out infinite;
}

.gift-service-btn:hover {
    background: #7ea5dd !important;
    animation-duration: 1.1s;
}

.gift-skin-btn {
    background: #ba77ca !important;
    border: solid 1px #ba77ca30 !important;
    animation: gift-skin-glow 2.2s ease-in-out infinite;
}

.gift-skin-btn:hover {
    background: #c489d3 !important;
    animation-duration: 1.1s;
}

@keyframes gift-service-glow {
    0%, 100% {
        box-shadow: 0 0 3px 0 #6c97d455, 0 0 1px #6c97d4;
    }
    50% {
        box-shadow: 0 0 9px 2px #6c97d4aa, 0 0 2px #6c97d4;
    }
}

@keyframes gift-skin-glow {
    0%, 100% {
        box-shadow: 0 0 3px 0 #ba77ca55, 0 0 1px #ba77ca;
    }
    50% {
        box-shadow: 0 0 9px 2px #ba77caaa, 0 0 2px #ba77ca;
    }
}

/* === Общая лента (elements/user_win.tpl) === */
.gs_win_card {
    display: inline-block;
    position: relative;
    width: 178px;
    margin-right: 10px;
    margin-bottom: 15px;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    vertical-align: top;
}

.gs_win_card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gs_win_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.gs_win_name {
    color: #ffa36c;
    font-weight: bold;
    margin-bottom: 0;
    font-size: 14px;
    text-align: left;
    flex-grow: 1;
    margin-right: 10px;
}

.gs_win_badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa36c);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.gs_win_link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.gs_win_image {
    width: 90%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gs_win_card:hover .gs_win_image {
    transform: scale(1.05);
}

.gs_win_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gs_win_card:hover .gs_win_overlay {
    opacity: 1;
}

.gs_win_actions {
    display: flex;
    justify-content: space-around;
}

.gs_win_action {
    color: white;
    font-size: 12px;
}

/* Наши услуга/деньги — в отличие от призов из боксов — не всегда имеют
   картинку (gs_win_overlay накладывается только поверх неё, тут своего
   тёмного фона нет), поэтому текст берём из обычного цвета темы. */
.gs_win_actions_no_image {
    margin-top: 8px;
    text-align: left;
}

.gs_win_actions_no_image .gs_win_action {
    color: inherit;
    opacity: 0.85;
}

.gs_win_user_info {
    margin-top: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.gs_win_user_link {
    color: #97a7bd;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

.gs_win_user_link:hover {
    color: #ffffff;
}

.gs_win_time {
    color: rgb(140, 193, 82);
    margin-top: 8px;
    font-size: 11px;
    text-align: left;
}

/* === Лента на странице профиля (elements/user_win_profile.tpl) === */
.gs_win_profile_card {
    display: inline-block;
    position: relative;
    margin: 8px;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    vertical-align: top;
    width: 30%;
}

.gs_win_profile_card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.gs_win_profile_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.gs_win_profile_name {
    color: #ffa36c;
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    flex-grow: 1;
    margin-bottom: 0;
    line-height: 1.2;
}

.gs_win_profile_badge {
    background: linear-gradient(45deg, #ff6b6b, #ffa36c);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.gs_win_profile_image {
    width: 100%;
    height: 130px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.gs_win_profile_card:hover .gs_win_profile_image {
    transform: scale(1.05);
}

.gs_win_profile_link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.gs_win_profile_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gs_win_profile_card:hover .gs_win_profile_overlay {
    opacity: 1;
}

.gs_win_profile_actions {
    display: flex;
    justify-content: space-around;
}

.gs_win_profile_action {
    color: white;
    font-size: 11px;
}

.gs_win_profile_actions_no_image {
    margin-top: 8px;
}

.gs_win_profile_actions_no_image .gs_win_profile_action {
    color: inherit;
    opacity: 0.85;
}
