
/**
 * Hub Spark Points Tracker - Public CSS
 */

/* Points Dashboard */
.hsp-points-dashboard {
    max-width: 100%;
    margin-bottom: 30px;
}

.hsp-points-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hsp-points-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.hsp-points-total {
    font-size: 18px;
    font-weight: 700;
}

.hsp-points-value {
    color: #9b87f5;
}

/* Points Cards */
.hsp-points-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.hsp-points-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hsp-card-header {
    margin-bottom: 15px;
}

.hsp-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
}

.hsp-card-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.hsp-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #9b87f5;
    margin-bottom: 15px;
}

.hsp-card-progress {
    margin-bottom: 10px;
}

.hsp-progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.hsp-progress-fill {
    height: 100%;
    background-color: #9b87f5;
    border-radius: 5px;
}

.hsp-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 5px;
}

.hsp-points-activities {
    margin-bottom: 30px;
}

/* Hub Selector */
.hsp-hub-selector {
    max-width: 100%;
    margin-bottom: 30px;
}

.hsp-selector-group {
    margin-bottom: 20px;
}

.hsp-selector-label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.hsp-selector {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Tables */
.hsp-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.hsp-table th,
.hsp-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hsp-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.hsp-table tr:hover {
    background-color: #f9f9f9;
}

/* Submit Form */
.hsp-submit-form {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 25px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hsp-form-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.hsp-form-group {
    margin-bottom: 20px;
}

.hsp-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.hsp-form-field {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.hsp-form-field:focus {
    border-color: #9b87f5;
    outline: none;
}

.hsp-form-textarea {
    min-height: 120px;
}

.hsp-form-submit {
    background-color: #9b87f5;
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hsp-form-submit:hover {
    background-color: #7E69AB;
}

.hsp-form-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Message Styles */
.hsp-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hsp-message-success {
    background-color: #e2f8e7;
    border: 1px solid #46b450;
    color: #0a6b1d;
}

.hsp-message-error {
    background-color: #ffe5e5;
    border: 1px solid #d63638;
    color: #921515;
}

.hsp-field-help {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* Status Badges */
.hsp-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.hsp-status-pending {
    background-color: #fff4e5;
    color: #946300;
}

.hsp-status-approved {
    background-color: #e2f8e7;
    color: #0a6b1d;
}

.hsp-status-rejected {
    background-color: #ffe5e5;
    color: #921515;
}

/* Responsive */
@media (max-width: 768px) {
    .hsp-points-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hsp-points-total {
        margin-top: 10px;
    }
    
    .hsp-table th,
    .hsp-table td {
        padding: 8px 10px;
    }
}

/* WordPress Integration */
.hsp-submit-form .wp-editor-wrap {
    margin-bottom: 20px;
}

/* Point levels */
.hsp-level-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
}

.hsp-level-bronze {
    background-color: #cd7f32;
    color: #fff;
}

.hsp-level-silver {
    background-color: #c0c0c0;
    color: #333;
}

.hsp-level-gold {
    background-color: #ffd700;
    color: #333;
}

.hsp-level-platinum {
    background-color: #e5e4e2;
    color: #333;
}

.hsp-level-diamond {
    background: linear-gradient(135deg, #a9c9ff 0%, #ffbbec 100%);
    color: #333;
}

/* Members Directory Styles */
.hsp-members-directory {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hsp-members-directory h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #9b87f5;
    padding-bottom: 10px;
}

.hsp-members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.hsp-member-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hsp-member-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hsp-member-link {
    text-decoration: none;
    color: #9b87f5;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    transition: color 0.2s ease;
}

.hsp-member-link:hover {
    color: #7E69AB;
}

.hsp-member-name {
    font-size: 18px;
    display: block;
}

.hsp-member-business,
.hsp-member-hub,
.hsp-member-region {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    padding-left: 20px;
    position: relative;
}

.hsp-member-business:before {
    content: "🏢";
    position: absolute;
    left: 0;
    top: 0;
}

.hsp-member-hub:before {
    content: "📍";
    position: absolute;
    left: 0;
    top: 0;
}

.hsp-member-region:before {
    content: "🌍";
    position: absolute;
    left: 0;
    top: 0;
}

/* Responsive adjustments for members directory */
@media (max-width: 768px) {
    .hsp-members-list {
        grid-template-columns: 1fr;
    }
    
    .hsp-member-item {
        padding: 15px;
    }
    
    .hsp-member-link {
        font-size: 16px;
    }
}
