/**
 * NoSpace Components
 * Standardized reusable elements (Cards, Buttons, Typo).
 * Depends on theme.css variables.
 */

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6,
.module-title,
.page-header h1 {
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Cards
   ======================================== */
.card, .module {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}

/* ========================================
   Buttons
   ======================================== */
.btn, .cta-button, .hero-cta {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Primary Button */
.btn-primary, .hero-cta {
    background: var(--brand-primary);
    color: #ffffff; /* Always white on primary bg */
}

.btn-primary:hover, .hero-cta:hover {
    filter: brightness(1.1);
}

/* Outline Button (Ghost) */
.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: #ffffff;
}

/* Link Button (Minimal) */
.btn-link {
    background: none;
    color: var(--brand-accent);
    padding: 0;
}

.btn-link:hover {
    text-decoration: underline;
}
