/* css/index.css - Stili per index.php */

/* ─── Layout base ─── */
.sog-home {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 60px;
}

/* ─── Sezioni ─── */
.sog-section {
    margin-bottom: 40px;
}

.sog-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(46, 204, 113, 0.15);
    padding-bottom: 8px;
}

.sog-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.sog-section-title:hover {
    color: #2ecc71;
}

.sog-section-arrow {
    font-size: 1rem;
    color: #2ecc71;
    transition: transform 0.2s;
}

.sog-section-title:hover .sog-section-arrow {
    transform: translateX(4px);
}

/* ─── Carousel ─── */
.sog-carousel-wrapper {
    position: relative;
}

.sog-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 204, 113, 0.3) transparent;
}

.sog-carousel::-webkit-scrollbar {
    height: 4px;
}

.sog-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.sog-carousel::-webkit-scrollbar-thumb {
    background: rgba(46, 204, 113, 0.3);
    border-radius: 2px;
}

/* ─── Card ─── */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sog-card {
    flex: 0 0 160px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(46, 204, 113, 0.15);
    text-decoration: none;
    color: #e8e8ff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: cardIn 0.4s ease both;
}

.sog-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(46, 204, 113, 0.5);
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.15);
}

.sog-card-img {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #0f0c29;
}

.sog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.sog-card:hover .sog-card-img img {
    transform: scale(1.05);
}

/* ─── Badge (luce + sesso) — due pillole in colonna in alto a destra ─── */
.sog-badges {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    z-index: 2;
}

.sog-badge {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    white-space: nowrap;
    opacity: 0.55;
    transition: opacity 0.2s;
}

.sog-card:hover .sog-badge {
    opacity: 1;
}

/* Luce */
.sog-badge.badge-auto {
    background: #1a6e3c;
    color: #6effa8;
    border: 1px solid #2ecc71;
}

.sog-badge.badge-photo {
    background: #6e4e00;
    color: #ffd966;
    border: 1px solid #ffc107;
}

/* Sesso */
.sog-badge.badge-fem {
    background: #6e1a55;
    color: #ffaaee;
    border: 1px solid #e040a0;
}

.sog-badge.badge-reg {
    background: #1a3a6e;
    color: #aaccff;
    border: 1px solid #6495ed;
}

.sog-badge.badge-masc {
    background: #1a3a6e;
    color: #aaccff;
    border: 1px solid #6495ed;
}

/* ─── Card info ─── */
.sog-card-info {
    padding: 8px 10px 10px;
    text-align: center;
}

.sog-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    color: #fff;
}

.sog-card-bank {
    font-size: 0.72rem;
    color: rgba(232, 232, 255, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
}

.sog-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── Tag (THC / CBD / Prezzo) ─── */
.sog-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(232, 232, 255, 0.7);
    font-weight: 500;
}

.sog-tag.thc {
    background: rgba(255, 100, 50, 0.2);
    color: #ff8060;
}

.sog-tag.cbd {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.sog-tag.price {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

/* ─── Frecce carousel ─── */
.sog-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 12, 41, 0.9);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    transition: background 0.2s, border-color 0.2s;
}

.sog-arrow:hover {
    background: rgba(46, 204, 113, 0.15);
    border-color: #2ecc71;
}

.sog-arrow.left {
    left: -16px;
}

.sog-arrow.right {
    right: -16px;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .sog-arrow {
        display: none;
    }

    .sog-card {
        flex: 0 0 140px;
    }

    .sog-section-title {
        font-size: 1rem;
    }
}