/* Raffle Detail Page Styles */

.raffle-page {
    padding: 30px 0;
}

/* Gallery */
.gallery {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.gallery-main {
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-top: 1px solid var(--border-light);
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-light);
    gap: 12px;
}

/* Raffle Content Layout */
.raffle-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

/* Raffle Main */
.raffle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.raffle-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.raffle-subtitle {
    font-size: 1.05rem;
    color: var(--text-alt);
    margin-bottom: 24px;
}

.raffle-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.raffle-details {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-alt);
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.detail-value.highlight {
    color: var(--primary);
    font-size: 1rem;
}

.highlight-row {
    background: var(--primary-light);
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    margin: 4px 0;
    border-bottom: none !important;
}

.raffle-section {
    margin-bottom: 28px;
}

.raffle-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.raffle-description {
    font-size: 0.9rem;
    color: var(--text-alt);
    line-height: 1.7;
}

/* Seller Info */
.seller-section {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.seller-info {
    display: grid;
    gap: 8px;
}

.seller-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.seller-label {
    font-size: 0.8rem;
    color: var(--text-alt);
    font-weight: 500;
}

.seller-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

/* Numbers Section */
.numbers-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}

.numbers-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.num-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: default;
    transition: all 0.2s;
    background: var(--bg-alt);
    color: var(--text);
    border: 1px solid var(--border-light);
}

.num-cell.avail {
    cursor: pointer;
    background: var(--bg);
    border-color: var(--primary);
    color: var(--primary);
}

.num-cell.avail:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.num-cell.sold {
    background: var(--bg-alt);
    color: var(--text-light);
    border-color: var(--border);
    opacity: 0.6;
    text-decoration: line-through;
}

.num-cell.won {
    background: #fef3e0;
    color: #e67e22;
    border-color: #f0c674;
    font-weight: 700;
}

.num-cell.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Buy Section */
.buy-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.selected-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.selected-info strong {
    color: var(--primary);
}

/* Draw Form */
.draw-form {
    margin-top: 12px;
}

/* Ticket Stats */
.ticket-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-desc {
    font-size: 0.75rem;
    color: var(--text-alt);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Vendor Section */
.vendors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.vendor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.vendor-form {
    margin-top: 12px;
}

.vendor-form .form-row {
    align-items: baseline;
}

/* Tabs */
.tabs-container {
    margin-bottom: 16px;
}

.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tab-btn {
    width: 66px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-alt);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tabs-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
    .raffle-content {
        grid-template-columns: 1fr;
    }

    .gallery-main {
/*        height: 280px;*/
    }
}

@media (max-width: 768px) {
    .raffle-title {
        font-size: 1.4rem;
    }

    .num-cell {
        font-size: 0.6rem;
    }

    .gallery-main {
/*        height: 220px;*/
    }

    .seller-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

