/**
 * tgshop-kori-loyalty.css
 *
 * Styles for the loyalty dashboard in WooCommerce My Account.
 *
 * @version 2.2.0
 */

/* Balance Card */
.tgshop-kori-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.tgshop-kori-balance-card h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
}

.tgshop-kori-points {
    margin-bottom: 16px;
}

.tgshop-kori-points-value {
    font-size: 48px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.tgshop-kori-points-label {
    font-size: 14px;
    opacity: 0.9;
}

.tgshop-kori-tier {
    margin-bottom: 16px;
}

.tgshop-kori-tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tgshop-kori-tier-bronze {
    background: #cd7f32;
}

.tgshop-kori-tier-silver {
    background: #c0c0c0;
    color: #333;
}

.tgshop-kori-tier-gold {
    background: #ffd700;
    color: #333;
}

.tgshop-kori-tier-platinum {
    background: #e5e4e2;
    color: #333;
}

/* The gateway also returns a Diamond tier, above Platinum. */
.tgshop-kori-tier-diamond {
    background: #b9e4f5;
    color: #0b4a63;
}

.tgshop-kori-tier-label {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-top: 4px;
}

.tgshop-kori-total-earned {
    font-size: 14px;
    opacity: 0.9;
}

.tgshop-kori-total-label {
    display: block;
    margin-bottom: 4px;
}

.tgshop-kori-total-value {
    font-size: 18px;
    font-weight: 600;
}

/* History Section */
.tgshop-kori-history-section {
    margin-bottom: 24px;
}

.tgshop-kori-history-section h3 {
    margin-bottom: 16px;
}

.tgshop-kori-history-table {
    width: 100%;
    border-collapse: collapse;
}

.tgshop-kori-history-table th,
.tgshop-kori-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tgshop-kori-history-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.tgshop-kori-points-positive {
    color: #28a745;
    font-weight: 600;
}

.tgshop-kori-points-negative {
    color: #dc3545;
    font-weight: 600;
}

.tgshop-kori-empty {
    color: #6c757d;
    font-style: italic;
}

/* Rewards Section */
.tgshop-kori-rewards-section {
    margin-bottom: 24px;
}

.tgshop-kori-rewards-section h3 {
    margin-bottom: 16px;
}

.tgshop-kori-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tgshop-kori-reward-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.tgshop-kori-reward-card h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.tgshop-kori-reward-card p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
}

.tgshop-kori-reward-cost {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Login Required */
.tgshop-kori-login-required {
    text-align: center;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tgshop-kori-login-required a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.tgshop-kori-login-required a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .tgshop-kori-points-value {
        font-size: 36px;
    }

    .tgshop-kori-rewards-grid {
        grid-template-columns: 1fr;
    }

    .tgshop-kori-history-table th,
    .tgshop-kori-history-table td {
        padding: 8px;
        font-size: 14px;
    }
}