/* Simple Loyalty Public Styles */

/* Account Widget */
.simple-loyalty-account-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.simple-loyalty-account-widget h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.simple-loyalty-account-widget .points-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.simple-loyalty-account-widget .points-icon {
    font-size: 24px;
}

.simple-loyalty-account-widget .points-text {
    font-size: 16px;
    font-weight: 500;
}

.simple-loyalty-account-widget .points-action {
    margin: 0;
}

.simple-loyalty-account-widget .button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 6px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.simple-loyalty-account-widget .button:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

/* Account Page */
.simple-loyalty-account-page {
    max-width: 800px;
}

.simple-loyalty-account-page h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 28px;
}

/* Points Summary Card */
.points-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.points-summary-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.points-summary-content .points-icon {
    font-size: 48px;
    opacity: 0.9;
}

.points-summary-content .points-info h3 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
}

.points-summary-content .points-value {
    margin: 4px 0 0 0;
    font-size: 16px;
    opacity: 0.9;
}

.points-actions .button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.points-actions .button:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.points-info-text {
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    background: white;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.how-it-works h3 {
    margin: 0 0 24px 0;
    color: #2c3e50;
    font-size: 22px;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.how-it-works .step {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.how-it-works .step-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.how-it-works .step h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.how-it-works .step p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Points History */
.points-history {
    background: white;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.points-history h3 {
    margin: 0 0 24px 0;
    color: #2c3e50;
    font-size: 22px;
}

.history-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.history-header {
    display: grid;
    grid-template-columns: 120px 1fr 100px;
    background: #f8f9fa;
    padding: 16px;
    font-weight: 600;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
}

.history-row {
    display: grid;
    grid-template-columns: 120px 1fr 100px;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.history-row:hover {
    background: #f8f9fa;
}

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

.col-date {
    color: #6c757d;
    font-size: 14px;
}

.col-description {
    color: #495057;
}

.col-points {
    font-weight: 600;
    text-align: right;
}

.col-points.positive {
    color: #28a745;
}

.col-points.negative {
    color: #dc3545;
}

.no-history {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-history-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-history h4 {
    margin: 0 0 8px 0;
    color: #495057;
}

.no-history p {
    margin: 0 0 20px 0;
}

/* Bonus Opportunities */
.bonus-opportunities {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bonus-opportunities h3 {
    margin: 0 0 24px 0;
    color: #2c3e50;
    font-size: 22px;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bonus-item {
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.bonus-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.bonus-item.completed {
    border-color: #28a745;
    background: #f8fff9;
}

.bonus-item .bonus-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.bonus-item h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
}

.bonus-item p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Cart Points */
.simple-loyalty-cart-row th,
.simple-loyalty-cart-row td {
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
}

.simple-loyalty-cart-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.points-available {
    font-weight: 500;
    color: #495057;
}

.points-applied {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    color: #155724;
}

.points-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-form input {
    width: 120px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.simple-loyalty-apply-points,
.simple-loyalty-remove-points {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.simple-loyalty-apply-points:hover,
.simple-loyalty-remove-points:hover {
    background: #5a67d8;
}

.simple-loyalty-remove-points {
    background: #dc3545;
    font-size: 12px;
    padding: 4px 8px;
}

.simple-loyalty-remove-points:hover {
    background: #c82333;
}

/* Shortcode Styles */
.simple-loyalty-points-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.simple-loyalty-icon {
    font-size: 1.2em;
}

.simple-loyalty-history {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.simple-loyalty-history .history-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
}

.simple-loyalty-history .history-entry:last-child {
    border-bottom: none;
}

.simple-loyalty-history .entry-date {
    color: #6c757d;
    font-size: 14px;
}

.simple-loyalty-history .entry-description {
    flex: 1;
    margin: 0 16px;
    color: #495057;
}

.simple-loyalty-history .entry-points {
    font-weight: 600;
}

.simple-loyalty-history .entry-points.positive {
    color: #28a745;
}

.simple-loyalty-history .entry-points.negative {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .points-summary-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
    
    .bonus-grid {
        grid-template-columns: 1fr;
    }
    
    .history-header,
    .history-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .history-header {
        display: none;
    }
    
    .history-row {
        padding: 12px;
        border: 1px solid #e9ecef;
        border-radius: 6px;
        margin-bottom: 8px;
    }
    
    .col-date::before {
        content: "Date: ";
        font-weight: 600;
    }
    
    .col-description::before {
        content: "Activity: ";
        font-weight: 600;
    }
    
    .col-points::before {
        content: "Points: ";
        font-weight: 600;
    }
    
    .col-points {
        text-align: left;
    }
    
    .points-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .points-form input {
        width: 100%;
        margin-bottom: 8px;
    }
}

