/**
 * CLUB360 Grid Styles
 * Mobile-First, High-Contrast Luxury
 */

/* 0. Header & Title Styling - CENTERED */
.c360-header {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the title-line */
    text-align: center;   /* Centers the text */
    width: 100%;
}

.c360-title {
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.c360-title-line {
    width: 30px;
    height: 3px;
    background-color: #d4af37; /* Luxury Gold */
}

/* 1. Grid Container Setup */
#c360-root {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.c360-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 35px 25px !important;
}

/* 2. Poster Link & Interactive States */
.c360-poster-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.c360-image-side {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 1375;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    transition: box-shadow 0.4s ease;
}

.c360-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover Zoom Effect */
.c360-poster-link:hover .c360-image-side img {
    transform: scale(1.08);
}

.c360-poster-link:hover .c360-image-side {
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.15);
}

/* 3. Interface Content (Under Poster) */
.c360-content-side {
    padding: 18px 5px;
}

/* Scarcity Bar Styling */
.c360-stock-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.c360-stock-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.c360-stock-count {
    font-size: 0.8rem;
    color: #d4af37;
    font-weight: 700;
}

.c360-bar-container {
    height: 3px;
    background: rgba(212, 175, 55, 0.1);
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.c360-bar-fill {
    height: 100%;
    background: #d4af37;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    transition: width 1s ease-in-out;
}

/* 4. The Ghost-Gold Button */
.c360-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 4px;
    border-radius: 12px;
    transition: 0.4s all ease;
}

.c360-btn-buy {
    background: transparent;
    border: 1px solid #d4af37;
    color: #d4af37 !important;
}

.c360-btn-buy:hover {
    background: #d4af37;
    color: #000 !important;
}

.c360-btn-sold {
    border: 1px solid #333;
    color: #444 !important;
    pointer-events: none;
    opacity: 0.5;
}

/* 5. Sold Out Global Logic */
.is-sold-out .c360-poster-link {
    cursor: default;
    pointer-events: none;
    filter: grayscale(0.8) brightness(0.5);
}

/* 6. Responsive */
@media (max-width: 800px) {
    .c360-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 12px !important;
    }
    
    .c360-title { font-size: 1.4rem; }
    .c360-image-side { border-radius: 12px; }
}