/* WooCommerce Points System - Frontend Styles v2.0.0 */
/* HVB Branding: Gold (#D4AF37) & Green (#2D5016) */

:root {
    --hvb-gold: #D4AF37;
    --hvb-green: #2D5016;
    --hvb-light-gold: #F4E4C1;
    --hvb-dark-green: #1a3010;
}

/* Points Balance Display */
.wc-points-balance {
    background: linear-gradient(135deg, var(--hvb-green) 0%, var(--hvb-dark-green) 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    color: white;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-points-balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.wc-points-balance h3 {
    margin: 0 0 15px 0;
    color: var(--hvb-gold);
    font-size: 1.4em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.points-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.points-amount {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--hvb-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.points-label {
    font-size: 1.2em;
    color: var(--hvb-light-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.points-value {
    color: var(--hvb-light-gold);
    font-size: 1.1em;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* Points Redemption Section */
.wc-points-redemption {
    background: white;
    border: 2px solid var(--hvb-gold);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.wc-points-redemption h3 {
    color: var(--hvb-green);
    margin: 0 0 15px 0;
    font-size: 1.3em;
    border-bottom: 2px solid var(--hvb-gold);
    padding-bottom: 10px;
}

.wc-points-redemption p {
    color: var(--hvb-dark-green);
    margin: 10px 0;
    font-size: 1.05em;
}

.wc-points-redemption form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.wc-points-redemption label {
    color: var(--hvb-green);
    font-weight: 600;
    font-size: 1em;
}

.wc-points-redemption input[type="number"] {
    padding: 10px 15px;
    border: 2px solid var(--hvb-gold);
    border-radius: 6px;
    font-size: 1em;
    max-width: 150px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wc-points-redemption input[type="number"]:focus {
    outline: none;
    border-color: var(--hvb-green);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.wc-points-redemption .button,
.wc-points-redemption button[type="submit"] {
    background: linear-gradient(135deg, var(--hvb-gold) 0%, #c19a2e 100%);
    color: var(--hvb-dark-green);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.wc-points-redemption .button:hover,
.wc-points-redemption button[type="submit"]:hover {
    background: linear-gradient(135deg, #c19a2e 0%, var(--hvb-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* My Account Points Dashboard */
.hvb-points-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.points-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.points-card {
    background: white;
    border: 2px solid var(--hvb-gold);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.points-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

.points-card h3 {
    color: var(--hvb-green);
    margin: 0 0 15px 0;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.points-card .big-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--hvb-gold);
    margin: 10px 0;
}

.points-card p {
    color: var(--hvb-dark-green);
    margin: 5px 0 0 0;
}

/* Points History Table */
.points-history {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.points-history h3 {
    color: var(--hvb-green);
    margin: 0 0 20px 0;
    font-size: 1.4em;
    border-bottom: 2px solid var(--hvb-gold);
    padding-bottom: 15px;
}

.points-history table {
    width: 100%;
    border-collapse: collapse;
}

.points-history th {
    background: var(--hvb-green);
    color: var(--hvb-gold);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
}

.points-history td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--hvb-dark-green);
}

.points-history tr:hover {
    background: var(--hvb-light-gold);
    transition: background 0.2s ease;
}

.points-positive {
    color: var(--hvb-green);
    font-weight: 600;
}

.points-negative {
    color: #c44;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-points-redemption form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wc-points-redemption input[type="number"] {
        max-width: 100%;
    }
    
    .points-overview {
        grid-template-columns: 1fr;
    }
    
    .points-amount {
        font-size: 2em;
    }
    
    .points-history {
        overflow-x: auto;
    }
    
    .points-history table {
        min-width: 600px;
    }
}

/* Loading States */
.points-loading {
    text-align: center;
    padding: 40px;
    color: var(--hvb-green);
}

.points-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Success/Error Messages */
.wc-points-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.wc-points-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wc-points-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
