/* Account Standing Page Styles */

.standing-page {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.standing-header {
    margin-bottom: 2rem;
}

.standing-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.standing-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Combined Standing Card */
.standing-card-combined {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Main Section - Status, Description, Points */
.sc-main {
    padding: 1.5rem;
}

.sc-status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1rem;
}

.sc-status-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--status-color, #22c55e) 12%, transparent);
    color: var(--status-color, #22c55e);
    border: 2px solid color-mix(in srgb, var(--status-color, #22c55e) 30%, transparent);
}

.sc-status-icon .material-icons-outlined {
    font-size: 28px;
}

.sc-status-info {
    flex: 1;
}

.sc-status-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sc-status-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--status-color, #22c55e);
}

.sc-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.sc-rules-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.sc-rules-link:hover {
    background: rgba(59, 130, 246, 0.15);
}

.sc-rules-link .material-icons-outlined {
    font-size: 1rem;
}

/* Points Section */
.sc-points {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

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

.sc-points-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-points-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.sc-points-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.sc-points-fill {
    height: 100%;
    border-radius: 4px;
}

/* Progress Section */
.sc-progress {
    background: var(--bg-tertiary);
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sc-progress-track {
    position: relative;
}

.sc-track-line {
    position: absolute;
    top: 18px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
}

.sc-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Reuse .sp-step styles for the steps */
.sc-steps .sp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.sc-steps .sp-step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 3px solid var(--border-color);
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.sc-steps .sp-step-marker .material-icons-outlined {
    font-size: 18px;
}

.sc-steps .sp-step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: center;
}

/* Step marker colors */
.sc-steps .sp-step-marker.all-good {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
}

.sc-steps .sp-step-marker.limited {
    background: rgba(234, 179, 8, 0.1);
    border-color: #eab308;
    color: #eab308;
}

.sc-steps .sp-step-marker.very-limited {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #f97316;
}

.sc-steps .sp-step-marker.suspended {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Future steps are dimmed */
.sc-steps .sp-step.future .sp-step-marker {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-tertiary);
}

/* Active step is highlighted */
.sc-steps .sp-step.active .sp-step-marker {
    width: 48px;
    height: 48px;
    border-width: 4px;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.sc-steps .sp-step.active .sp-step-marker.limited {
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.15);
}

.sc-steps .sp-step.active .sp-step-marker.very-limited {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.sc-steps .sp-step.active .sp-step-marker.suspended {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.sc-steps .sp-step.active .sp-step-marker .material-icons-outlined {
    font-size: 22px;
}

.sc-steps .sp-step.active .sp-step-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 12px;
}

.sc-steps .sp-step.past .sp-step-label {
    color: var(--text-secondary);
}

/* Legacy styles hidden */
.standing-progress-v2,
.standing-progress,
.standing-current {
    display: none;
}

/* Restrictions Grid */
.restrictions-section {
    margin-bottom: 1.5rem;
}

.restrictions-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.restrictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.restriction-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.restriction-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.restriction-icon.allowed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.restriction-icon.blocked {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.restriction-info {
    flex: 1;
}

.restriction-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.restriction-status {
    font-size: 12px;
}

.restriction-status.allowed {
    color: #22c55e;
}

.restriction-status.blocked {
    color: #ef4444;
}

/* Violations Section */
.violations-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.violations-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.violations-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.violations-empty .material-icons-outlined {
    font-size: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.violation-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.violation-card:last-child {
    margin-bottom: 0;
}

.violation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.violation-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.violation-type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.violation-points {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.violation-points .decayed {
    color: var(--text-secondary);
    font-weight: 400;
}

.violation-reason {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.violation-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 12px;
    color: var(--text-tertiary);
}

.violation-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.violation-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-appeal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-appeal:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* Appeal Modal */
.appeal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.appeal-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 1.5rem;
}

.appeal-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.appeal-modal textarea {
    width: 100%;
    min-height: 150px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    margin-bottom: 1rem;
}

.appeal-modal textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.appeal-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: var(--bg-tertiary);
}

.btn-submit-appeal {
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-submit-appeal:hover {
    background: var(--accent-hover);
}

.btn-submit-appeal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.standing-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.standing-loading .material-icons-outlined {
    font-size: 48px;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .standing-page {
        padding: 1rem;
    }

    .standing-header h1 {
        font-size: 22px;
    }

    /* Combined Card Responsive */
    .sc-main {
        padding: 1.25rem;
    }

    .sc-status {
        gap: 12px;
    }

    .sc-status-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .sc-status-icon .material-icons-outlined {
        font-size: 24px;
    }

    .sc-status-value {
        font-size: 20px;
    }

    .sc-description {
        font-size: 13px;
    }

    .sc-progress {
        padding: 1rem;
    }

    .sc-track-line {
        display: none;
    }

    .sc-steps {
        gap: 8px;
    }

    .sc-steps .sp-step-marker {
        width: 36px;
        height: 36px;
    }

    .sc-steps .sp-step-marker .material-icons-outlined {
        font-size: 16px;
    }

    .sc-steps .sp-step.active .sp-step-marker {
        width: 42px;
        height: 42px;
    }

    .sc-steps .sp-step.active .sp-step-marker .material-icons-outlined {
        font-size: 18px;
    }

    .sc-steps .sp-step-label {
        font-size: 9px;
    }

    .sc-steps .sp-step.active .sp-step-label {
        font-size: 10px;
    }

    .restrictions-grid {
        grid-template-columns: 1fr;
    }

    .violation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .violation-meta {
        flex-wrap: wrap;
    }
}

/* Tier Section */
.tier-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tier-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tier-current {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.tier-requirements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tier-requirement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tier-requirement.unlocked {
    border-color: rgba(34, 197, 94, 0.3);
}

.tier-requirement.locked {
    border-color: var(--border-color);
}

.requirement-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.requirement-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tier-requirement.unlocked .requirement-status {
    color: #22c55e;
}

.tier-requirement.locked .requirement-status {
    color: var(--text-secondary);
}

.requirement-status .material-icons-outlined {
    font-size: 16px;
}

.btn-upgrade {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 20px;
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
}

.btn-upgrade:hover {
    background: var(--accent-hover);
}
