/*
Theme Name: ARCANUM BTP
Theme URI: https://chargego.hu
Author: GitHub Copilot
Description: Custom WordPress theme for the ARCANUM BTP platform.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: arcanum-btp
*/

:root {
    --abtp-bg: #f6f7fb;
    --abtp-surface: #ffffff;
    --abtp-text: #0f172a;
    --abtp-muted: #64748b;
    --abtp-primary: #2563eb;
    --abtp-primary-dark: #1d4ed8;
    --abtp-border: #dbe3f0;
    --abtp-radius: 18px;
    --abtp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--abtp-bg);
    color: var(--abtp-text);
}

a {
    color: var(--abtp-primary);
    text-decoration: none;
}

a:hover {
    color: var(--abtp-primary-dark);
}

.abtp-site-header,
.abtp-site-footer {
    background: var(--abtp-surface);
    border-bottom: 1px solid var(--abtp-border);
}

.abtp-site-footer {
    border-top: 1px solid var(--abtp-border);
    border-bottom: 0;
    margin-top: 48px;
}

.abtp-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.abtp-header-inner,
.abtp-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.abtp-brand {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.abtp-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.abtp-main {
    padding: 40px 0 60px;
}

.abtp-hero,
.abtp-auth-card,
.abtp-panel,
.abtp-stat-card {
    background: var(--abtp-surface);
    border: 1px solid var(--abtp-border);
    border-radius: var(--abtp-radius);
    box-shadow: var(--abtp-shadow);
}

.abtp-hero {
    padding: 48px;
    display: grid;
    gap: 20px;
}

.abtp-auth-card,
.abtp-panel {
    padding: 24px;
}

.abtp-form {
    display: grid;
    gap: 16px;
}

.abtp-form label {
    display: grid;
    gap: 8px;
}

.abtp-form input {
    border: 1px solid var(--abtp-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
}

.abtp-form select,
.abtp-form textarea {
    border: 1px solid var(--abtp-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.abtp-form textarea {
    min-height: 130px;
    resize: vertical;
}

.abtp-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--abtp-primary);
    color: #fff;
    font-weight: 600;
    border: 0;
    cursor: pointer;
}

.abtp-button--secondary {
    background: #e8eefc;
    color: var(--abtp-text);
}

.abtp-placeholder-note {
    color: var(--abtp-muted);
    margin-top: 16px;
}

.abtp-alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.abtp-alert ul,
.abtp-alert p {
    margin: 0;
    padding-left: 18px;
}

.abtp-alert--success {
    background: #ecfdf3;
    border: 1px solid #86efac;
    color: #166534;
}

.abtp-alert--error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.abtp-stats-grid,
.abtp-dashboard__columns,
.abtp-feature-grid {
    display: grid;
    gap: 20px;
}

.abtp-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 24px 0;
}

.abtp-stat-card strong {
    font-size: 2rem;
    display: block;
}

.abtp-stat-card {
    padding: 24px;
}

.abtp-stat-card small {
    display: block;
    color: var(--abtp-muted);
    margin-top: 8px;
}

.abtp-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.abtp-feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 28px;
}

.abtp-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.abtp-profile-form {
    margin-top: 24px;
}

.abtp-profile-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.abtp-form__full {
    grid-column: 1 / -1;
}

.abtp-profile-preview {
    margin-top: 24px;
}

.abtp-profile-logo {
    width: min(220px, 100%);
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--abtp-border);
    background: #fff;
    padding: 12px;
}

.abtp-search-form {
    margin-bottom: 24px;
}

.abtp-search-summary {
    margin-bottom: 18px;
    color: var(--abtp-muted);
}

.abtp-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.abtp-search-card {
    background: var(--abtp-surface);
    border: 1px solid var(--abtp-border);
    border-radius: var(--abtp-radius);
    padding: 24px;
    display: grid;
    gap: 16px;
    box-shadow: var(--abtp-shadow);
}

.abtp-search-card__header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.abtp-search-card__header h2 {
    margin: 0 0 4px;
    font-size: 1.125rem;
}

.abtp-search-card__header p {
    margin: 0;
    color: var(--abtp-muted);
}

.abtp-search-card__logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--abtp-border);
}

.abtp-search-card__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 800;
}

.abtp-search-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.abtp-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 0.9rem;
    font-weight: 600;
}

.abtp-badge--muted {
    background: #e2e8f0;
    color: #334155;
}

.abtp-badge--score {
    background: #dcfce7;
    color: #166534;
}

.abtp-search-card__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 0;
}

.abtp-search-card__details div {
    background: #f8fafc;
    border: 1px solid var(--abtp-border);
    border-radius: 14px;
    padding: 12px;
}

.abtp-search-card__details dt {
    font-weight: 700;
    margin-bottom: 6px;
}

.abtp-search-card__details dd {
    margin: 0;
    color: var(--abtp-muted);
}

.abtp-pagination {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.abtp-pagination a {
    display: inline-flex;
    min-width: 40px;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--abtp-border);
    background: #fff;
}

.abtp-pagination a.is-active {
    background: var(--abtp-primary);
    color: #fff;
    border-color: var(--abtp-primary);
}

.abtp-activity-list,
.abtp-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.abtp-activity-list li,
.abtp-check-list li {
    border: 1px solid var(--abtp-border);
    border-radius: 14px;
    padding: 14px 16px;
    background: #fff;
}

.abtp-activity-list li strong,
.abtp-check-list li strong {
    display: block;
    margin-bottom: 6px;
}

.abtp-activity-list li span,
.abtp-check-list li span {
    color: var(--abtp-muted);
    font-size: 0.95rem;
}

.abtp-check-list li.is-complete {
    border-color: #86efac;
    background: #f0fdf4;
}

.abtp-check-list li.is-pending {
    border-color: #fcd34d;
    background: #fffbeb;
}

.abtp-progress {
    margin-bottom: 18px;
}

.abtp-progress__bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 10px;
}

.abtp-progress__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #14b8a6 100%);
    border-radius: 999px;
}

.abtp-feature-card {
    background: var(--abtp-surface);
    border: 1px solid var(--abtp-border);
    border-radius: var(--abtp-radius);
    padding: 24px;
}

@media (max-width: 768px) {

    .abtp-header-inner,
    .abtp-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .abtp-hero {
        padding: 28px;
    }
}