﻿.gin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.gin-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1.2rem;
    padding: 1.7rem 1.3rem 1.1rem 1.3rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(99,102,241,0.08), 0 2px 6px rgba(0,0,0,0.05);
    transition: box-shadow .32s cubic-bezier(.21,.6,.34,1), transform .32s cubic-bezier(.21,.6,.34,1), border .32s;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px) scale(.96);
    animation: ginRiseIn .7s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes ginRiseIn {
    to {
        opacity: 1;
        transform: none;
    }
}

.gin-card:hover {
    box-shadow: 0 18px 40px rgba(99,102,241,0.22), 0 1px 15px rgba(147,51,234,0.10);
    transform: translateY(-6px) scale(1.04);
    border: 1.5px solid;
    border-image: linear-gradient(90deg, #6366f1 0%, #a78bfa 100%) 1;
    z-index: 2;
}

.gin-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: .7rem;
    margin-bottom: .7rem;
    box-shadow: 0 2px 14px rgba(99,102,241,0.09);
    transition: filter .38s, box-shadow .38s;
}

.gin-card:hover .gin-img {
    filter: brightness(1.07) saturate(1.13) drop-shadow(0 0 12px #a78bfa88);
    box-shadow: 0 8px 24px rgba(99,102,241,0.25);
}

.gin-note-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(90deg, #6366f1, #9333ea);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(99,102,241,0.15);
    letter-spacing: .1px;
    z-index: 3;
}

.gin-card h3 {
    margin: .6rem 0 .7rem;
    font-size: 1.18rem;
    font-weight: 700;
    background: linear-gradient(90deg, #6366f1, #9333ea 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: .2px;
}

.gin-btn {
    background: linear-gradient(90deg, #6366f1, #9333ea);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
    margin-top: 6px;
    font-weight: 600;
    font-size: 1.01rem;
    box-shadow: 0 2px 10px rgba(99,102,241,0.07);
    transition: background 0.18s, box-shadow .18s, transform .18s;
    outline: none;
}

    .gin-btn:active {
        transform: scale(.97);
    }

    .gin-btn:hover {
        background: linear-gradient(90deg, #9333ea, #6366f1);
        box-shadow: 0 4px 18px rgba(147,51,234,0.18);
    }

.gin-comments {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text);
    background: color-mix(in oklab, var(--card) 85%, transparent);
    border-radius: 8px;
    padding: .5rem .7rem;
    box-shadow: 0 1px 5px rgba(99,102,241,0.07);
    max-height: 100px;
    overflow-y: auto;
}

    .gin-comments ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .gin-comments li {
        margin-bottom: .25rem;
        padding-bottom: .18rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.97rem;
    }

input[type="text"] {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .45rem .7rem;
    font-size: 1rem;
    margin-bottom: .4rem;
    width: 85%;
    margin-right: .5rem;
    box-shadow: 0 1px 4px rgba(99,102,241,0.05);
    transition: border-color .15s;
}

    input[type="text"]:focus {
        border-color: #6366f1;
        outline: none;
    }

.gin-btn-compact {
    padding: 4px 12px;
    font-size: 1rem;
    border-radius: 8px;
    min-width: 30px;
    margin: 0 2px;
}

@media (max-width:900px) {
    .gin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .gin-grid {
        grid-template-columns: 1fr;
    }
}
