/*
 * NDC Plugin Styles
 * Uses oc247 CSS custom properties — nothing hardcoded
 */

/* =========================================================
   CASINO TABLE
   ========================================================= */

.ndc-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--oc247-spacing-lg);
}

.ndc-casino-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--oc247-font-sans);
    font-size: 0.8125rem;
    color: var(--oc247-text-primary);
}

.ndc-casino-table thead tr {
    background: var(--oc247-navy);
    color: var(--oc247-white);
}

.ndc-casino-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.ndc-row {
    border-bottom: 1px solid var(--oc247-border);
    transition: background var(--oc247-transition);
}

.ndc-row:nth-child(even) {
    background: var(--oc247-bg-secondary);
}

.ndc-row:hover {
    background: #eef0f8;
}

.ndc-cell {
    padding: 12px;
    vertical-align: middle;
}

/* Casino cell */
.ndc-casino-cell {
    min-width: 160px;
}

.ndc-casino-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-decoration: none;
}

.ndc-casino-logo {
    max-width: 100px;
    height: auto;
    border-radius: var(--oc247-radius-sm);
    border: 1px solid var(--oc247-border);
}

.ndc-casino-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--oc247-navy);
}

.ndc-casino-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ndc-chip {
    font-size: 0.5625rem;
    font-weight: 500;
    color: var(--oc247-text-secondary);
    background: var(--oc247-bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--oc247-radius-full);
    white-space: nowrap;
}

/* Offer cell */
.ndc-offer-cell {
    min-width: 120px;
}

.ndc-offer-primary {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--oc247-navy);
    margin-bottom: 3px;
}

.ndc-offer-secondary {
    font-size: 0.75rem;
    color: var(--oc247-text-secondary);
}

/* Codes cell */
.ndc-codes-cell {
    min-width: 120px;
}

.ndc-code-line {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--oc247-gold-dark);
    background: var(--oc247-gold-light);
    padding: 3px 8px;
    border-radius: var(--oc247-radius-sm);
    display: inline-block;
    margin-bottom: 4px;
}

.ndc-code-note {
    font-size: 0.6875rem;
    color: var(--oc247-text-secondary);
}

/* CTA cells */
.ndc-review-btn,
.ndc-visit-btn {
    white-space: nowrap;
    font-size: 0.6875rem;
    padding: 6px 12px;
}

.ndc-na {
    color: var(--oc247-text-tertiary);
}

/* =========================================================
   REVIEW BLOCK ([show_casino])
   ========================================================= */

.ndc-review-block {
    max-width: 320px;
}

.ndc-review-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--oc247-spacing-md);
    padding-bottom: var(--oc247-spacing-md);
    border-bottom: 1px solid var(--oc247-border);
    text-align: center;
}

.ndc-review-logo {
    max-width: 160px;
    height: auto;
    border-radius: var(--oc247-radius-sm);
}

.ndc-review-cta {
    width: 100%;
}

.ndc-bonus-block {
    padding: 12px;
    background: var(--oc247-bg-secondary);
    border-radius: var(--oc247-radius-md);
    margin-bottom: var(--oc247-spacing-sm);
}

.ndc-bonus-special {
    background: var(--oc247-gold-light);
    border: 1px solid rgba(212,168,32,0.3);
}

.ndc-bonus-label {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--oc247-text-tertiary);
    margin-bottom: 4px;
}

.ndc-bonus-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--oc247-navy);
    margin-bottom: 3px;
}

.ndc-bonus-code {
    font-size: 0.6875rem;
    color: var(--oc247-gold-dark);
    font-weight: 500;
}

.ndc-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: var(--oc247-spacing-md);
}

.ndc-info-item {
    padding: 8px 10px;
    background: var(--oc247-bg-secondary);
    border-radius: var(--oc247-radius-sm);
}

.ndc-info-label {
    display: block;
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--oc247-text-tertiary);
    margin-bottom: 2px;
}

.ndc-info-value {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--oc247-text-primary);
}

.ndc-verified {
    text-align: center;
    padding-top: var(--oc247-spacing-sm);
    border-top: 1px solid var(--oc247-border);
    margin-top: var(--oc247-spacing-sm);
}

/* =========================================================
   RECENT POSTS GRID
   ========================================================= */

.ndc-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ndc-recent-img-wrap {
    display: block;
}

.ndc-recent-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--oc247-bg-tertiary);
    border-radius: var(--oc247-radius-md) var(--oc247-radius-md) 0 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .ndc-casino-table {
        font-size: 0.75rem;
    }

    /* Stack table on mobile */
    .ndc-casino-table thead {
        display: none;
    }

    .ndc-row {
        display: block;
        margin-bottom: var(--oc247-spacing-md);
        border: 1px solid var(--oc247-border);
        border-radius: var(--oc247-radius-lg);
        overflow: hidden;
    }

    .ndc-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--oc247-border-light);
        padding: 10px 14px;
    }

    .ndc-cell::before {
        content: attr(data-label);
        font-size: 0.5625rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--oc247-text-tertiary);
        flex-shrink: 0;
        margin-right: 10px;
    }

    .ndc-casino-cell {
        flex-direction: column;
        align-items: flex-start;
    }

    .ndc-casino-cell::before {
        display: none;
    }

    .ndc-recent-grid {
        grid-template-columns: 1fr;
    }
}
