/* Account-specific styles for UnmaskedPolitics */
/* Extends tokens.v1.css and app.v1.css */

/* Sidebar active state */
.sidebar-active {
    color: var(--color-accent);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    display: block;
}

/* Account Status Components */
.account-status {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.status-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.status-content {
    flex: 1;
}

.status-title {
    font-size: var(--font-l);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.status-description {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

/* Plan Badges */
.plan-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: var(--font-s);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.user {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.plan-badge.user-plus {
    background: rgba(147, 51, 234, 0.1);
    color: rgb(147, 51, 234);
    border: 1px solid rgba(147, 51, 234, 0.3);
}

/* Plan Options */
.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.plan-option {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--color-bg);
    transition: all 0.2s ease;
}

.plan-option.featured {
    border-color: var(--color-accent);
    position: relative;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.plan-option.featured::before {
    content: "Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: var(--font-s);
    font-weight: 600;
}

.plan-header {
    margin-bottom: 1rem;
}

.plan-header h3 {
    margin: 0 0 0.25rem 0;
    color: var(--color-text);
}

.plan-price {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-accent);
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Feature Tiles */
.feature-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-tile {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    text-align: center;
    position: relative;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.feature-tile.available {
    opacity: 1;
    background: var(--color-bg-alt);
}

.feature-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-tile h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.feature-tile p {
    margin: 0 0 1rem 0;
    color: var(--color-text-muted);
    font-size: var(--font-s);
}

.feature-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: calc(var(--font-s) * 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge.user {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

.feature-badge.user-plus {
    background: rgba(147, 51, 234, 0.1);
    color: rgb(147, 51, 234);
}

/* Settings Forms */
.settings-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-m);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[readonly] {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    cursor: not-allowed;
}

.form-help {
    margin-top: 0.25rem;
    font-size: var(--font-s);
    color: var(--color-text-muted);
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-accent);
}

.radio-option input[type="radio"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: var(--color-accent);
}

.radio-label {
    flex: 1;
}

.radio-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.radio-description {
    display: block;
    font-size: var(--font-s);
    color: var(--color-text-muted);
}

/* Accent Colors */
.accent-colors {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.accent-colors.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.accent-swatch {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.accent-swatch:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Location Limit */
.location-limit {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
}

.limit-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.limit-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.limit-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.limit-description {
    color: var(--color-text-muted);
    font-size: var(--font-s);
}

/* Security Items */
.security-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
}

.security-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.security-content {
    flex: 1;
}

.security-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.security-description {
    color: var(--color-text-muted);
    font-size: var(--font-s);
}

.security-actions {
    flex-shrink: 0;
}

/* Status Pills */
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: calc(var(--font-s) * 0.9);
    font-weight: 600;
    margin-right: 0.5rem;
}

.status-pill.active {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
}

.status-pill.inactive {
    background: rgba(156, 163, 175, 0.1);
    color: rgb(156, 163, 175);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Button Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-s);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .plan-options {
        grid-template-columns: 1fr;
    }
    
    .feature-tiles {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .form-actions,
    .card-actions {
        flex-direction: column;
    }
    
    .status-item,
    .security-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .plan-option.featured {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .status-item,
[data-theme="dark"] .security-item {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

[data-theme="dark"] .location-limit {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}