/* ============================================
   COMPONENTS - OnlyQVPN
   Reusable UI components (buttons, cards, forms)
   ============================================ */

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: #080808;
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(200,255,87,0.25);
}

.btn-primary:hover::before { 
    opacity: 0.1; 
}

.btn-primary:active { 
    transform: translateY(0); 
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .btn-primary, .btn-ghost { 
        padding: 12px 20px; 
        font-size: 12px;
    }
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
    border-color: var(--border-hover);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s;
    line-height: 1.5;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-error {
    font-size: 13px;
    color: #ff5555;
    margin-top: 6px;
}

.form-help {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.empty-state a:hover { 
    opacity: 0.8; 
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(87, 255, 87, 0.1);
    color: #57ff57;
    border: 1px solid rgba(87, 255, 87, 0.2);
}

.status-badge.warning {
    background: rgba(255, 200, 87, 0.1);
    color: #ffc857;
    border: 1px solid rgba(255, 200, 87, 0.2);
}

.status-badge.error {
    background: rgba(255, 85, 85, 0.1);
    color: #ff5555;
    border: 1px solid rgba(255, 85, 85, 0.2);
}

.status-badge.neutral {
    background: rgba(136, 136, 136, 0.1);
    color: #888;
    border: 1px solid rgba(136, 136, 136, 0.2);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px;
    font-weight: 600;
}

/* Stats */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s;
}

.stat-card:hover { 
    border-color: var(--border-hover); 
}

.stat-value {
    font-family: 'Space Mono', monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* FAQ Components */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.faq-question:hover { 
    color: var(--accent); 
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.faq-item.open .faq-answer { 
    max-height: 400px; 
}

.faq-answer-inner { 
    padding-bottom: 22px; 
}
