/* ============================================
   REUSABLE COMPONENTS - Buttons, Cards, Badges
   ============================================ */

/* Content Section */
.content-section {
    padding: 4rem 0;
}

.page-header {
    background: var(--bg-secondary);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content h1,
.content h2,
.content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
}

.content ul,
.content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    text-decoration: underline;
}

/* Section Headings */
.section-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-subheading {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Status Badges */
.status-pass,
.status-passing {
    color: var(--success-color);
    font-weight: 600;
}

.status-fail,
.status-failing {
    color: var(--error-color);
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dark theme defaults */
.status-works {
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.40);
}

.status-works:hover {
    background: rgba(34, 197, 94, 0.20);
}

.status-partial {
    background: rgba(245, 158, 11, 0.12);
    color: #fef08a;
    border: 1px solid rgba(245, 158, 11, 0.42);
}

.status-partial:hover {
    background: rgba(245, 158, 11, 0.20);
}

.status-broken {
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.40);
}

.status-broken:hover {
    background: rgba(239, 68, 68, 0.20);
}

.status-unknown {
    background: rgba(148, 163, 184, 0.10);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.status-unknown:hover {
    background: rgba(148, 163, 184, 0.18);
}

/* Additional status types for compatibility table */
.status-full {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.40);
}

.status-full:hover {
    background: rgba(34, 197, 94, 0.20);
}

.status-none {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-none:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* Light theme overrides */
html[data-theme="light"] .status-works {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

html[data-theme="light"] .status-works:hover {
    background: #bbf7d0;
}

html[data-theme="light"] .status-partial {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

html[data-theme="light"] .status-partial:hover {
    background: #fde68a;
}

html[data-theme="light"] .status-broken {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

html[data-theme="light"] .status-broken:hover {
    background: #fecaca;
}

html[data-theme="light"] .status-unknown {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

html[data-theme="light"] .status-unknown:hover {
    background: #e5e7eb;
}

html[data-theme="light"] .status-full {
    background: #dcfce7;
    color: #15803d;
    border-color: #86efac;
}

html[data-theme="light"] .status-none {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

html[data-theme="light"] .status-full:hover {
    background: #6ee7b7;
}

html[data-theme="light"] .status-none {
    background: #fca5a5;
    color: #7f1d1d;
}

html[data-theme="light"] .status-none:hover {
    background: #f87171;
}

/* status-cell — compact inline badge used in compare tables */
.status-cell {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
    white-space: nowrap;
}

/* Alias status-cell-* to match status-* colours so both class naming
   conventions share a single source of truth */
.status-cell-works   { background: rgba(34, 197, 94, 0.12);   color: #86efac; border: 1px solid rgba(34, 197, 94, 0.40); }
.status-cell-partial { background: rgba(245, 158, 11, 0.12);  color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.42); }
.status-cell-broken  { background: rgba(239, 68, 68, 0.12);   color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.40); }
.status-cell-unknown { background: rgba(148, 163, 184, 0.10); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.35); }

html[data-theme="light"] .status-cell-works   { background: #dcfce7; color: #15803d; border-color: #86efac; }
html[data-theme="light"] .status-cell-partial { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
html[data-theme="light"] .status-cell-broken  { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
html[data-theme="light"] .status-cell-unknown { background: #f3f4f6; color: #374151; border-color: #d1d5db; }

/* Tags */
.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-pmos {
    background: #2563eb;
    color: white;
}

.tag-eos {
    background: #16a34a;
    color: white;
}

.category-community,
.category-main {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.category-community {
    background: rgba(53, 132, 228, 0.2);
    color: #62a0ea;
}

.category-main {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.4rem 0.75rem;
    background: rgba(53, 132, 228, 0.15);
    border: 1px solid rgba(53, 132, 228, 0.3);
    border-radius: 16px;
    font-size: 0.85rem;
    color: #62a0ea;
    font-weight: 500;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin: 2rem 0;
}

.error-message h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.error-message .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.error-message .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(53, 132, 228, 0.4);
}
