:root {
    --bg: #f5f7fb;
    --bg-card: #ffffff;
    --text: #222;
    --accent: #0074d9;
    --border: #dde3ee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
}

.logo a {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

/* Navigatie + dropdown (incl. dynamische menu's) */

.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav > a {
    margin-left: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.nav-group {
    position: relative;
}

.nav-group button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.nav-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.25rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: none;
    z-index: 1000;
}

.nav-group:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: var(--bg);
}

/* Hero */

.hero {
    padding: 2rem 0 1.5rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero p {
    max-width: 600px;
    margin-bottom: 1rem;
}

.search-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.search-box input {
    flex: 1 1 220px;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.search-box button {
    padding: 0.6rem 1.1rem;
    border-radius: 4px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.search-box button:hover {
    background: #005fa8;
}

/* Home grid */

.home-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.home-column h2 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.4rem;
}

/* Nieuwste berekeningen */

.nieuwste-list {
    list-style: none;
}

.nieuwste-list li {
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
}

.nieuwste-list a {
    display: block;
}

.nieuwste-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.nieuwste-meta {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.15rem;
}

.nieuwste-desc {
    font-size: 0.9rem;
}

/* Content pages */

.main-content h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem;
}

.main-content p {
    margin-bottom: 0.75rem;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    background: #ffffff;
    margin-top: 2rem;
}

.footer-inner {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: #666;
}

.footer-sub {
    font-size: 0.75rem;
}

/* -------------------------------------------------------
   GENERIEKE CALCULATOR LAYOUT
   (gebaseerd op Azure naming convention generator)
   ---------------------------------------------------- */

/* Pagina wrapper */

.ab-page,
.azn-page {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

.ab-intro,
.azn-intro {
    margin-bottom: 1.5rem;
    max-width: 800px;
    font-size: 0.95rem;
}

/* Optionele kleine badges/versie */

.azn-version {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
}

.azn-home-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #0074d9;
    background: #e3f2ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s;
}

.azn-home-link:hover {
    background: #c7e4ff;
    color: #005fa8;
}

/* Grid layout (2 kolommen) */

.ab-grid-2col,
.azn-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

/* Cards */

.ab-card,
.azn-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
    position: relative;
}

.ab-card h2,
.azn-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.ab-subtitle,
.azn-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}

/* Form layout */

.ab-form-row,
.azn-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ab-form-group,
.azn-form-group {
    flex: 1 1 180px;
    min-width: 0;
}

.ab-form-group label,
.azn-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.ab-form-group small,
.azn-form-group small {
    display: block;
    font-size: 0.75rem;
    color: #777;
}

/* Inputs / selects / textarea */

.ab-input,
.ab-select,
.ab-textarea,
.azn-input,
.azn-select,
.azn-textarea {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.ab-textarea,
.azn-textarea {
    min-height: 120px;
    font-family: monospace;
    resize: vertical;
}

/* Slider rij */

.ab-slider-row,
.azn-slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ab-slider-row span,
.azn-slider-row span {
    font-size: 0.8rem;
    white-space: nowrap;
}

.ab-slider-row input[type="range"],
.azn-slider-row input[type="range"] {
    flex: 1 1 auto;
}

/* Pills / kleine labels */

.ab-pill,
.azn-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #e3f2ff;
    color: #05529c;
    font-size: 0.75rem;
    margin-right: 0.35rem;
    margin-bottom: 0.25rem;
}

.ab-pill code,
.azn-pill code {
    font-family: monospace;
    font-size: 0.8rem;
    margin-left: 0.15rem;
}

/* Resource list (Azure specifieke maar bruikbaar als pattern) */

.ab-resource-list,
.azn-resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem 0.75rem;
    margin-top: 0.35rem;
}

.ab-resource-item,
.azn-resource-item {
    font-size: 0.85rem;
}

.ab-resource-item.dependent,
.azn-resource-item.dependent {
    margin-left: 1.5rem;
    font-size: 0.8rem;
    opacity: 0.85;
}

.ab-resource-item.dependent::before,
.azn-resource-item.dependent::before {
    content: '↳ ';
    color: #6b7280;
}

.ab-resource-item label,
.azn-resource-item label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.ab-resource-item span,
.azn-resource-item span {
    font-size: 0.78rem;
    color: #666;
}

.azn-resource-item .azn-remove-btn {
    margin-left: auto;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    cursor: pointer;
}

.azn-resource-item .azn-remove-btn:hover {
    background: #dc2626;
}

/* Preview / output blok */

.ab-preview-name,
.azn-preview-name {
    font-family: monospace;
    background: #0f172a;
    color: #e5e7eb;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    overflow-x: auto;
}

.ab-badge,
.azn-badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    margin-right: 0.25rem;
}

.ab-copy-row,
.azn-copy-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    gap: 0.5rem;
}

.ab-copy-row small,
.azn-copy-row small {
    font-size: 0.75rem;
    color: #666;
}

/* Buttons */

.ab-button-primary,
.azn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    border: none;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.ab-button-secondary,
.azn-btn.secondary {
    background: #e5e7eb;
    color: #111827;
}

.ab-button-primary:hover,
.azn-btn:hover {
    background: #005fa8;
}

.ab-button-secondary:hover,
.azn-btn.secondary:hover {
    background: #d4d4d8;
}

/* Pattern table */

.ab-pattern-table,
.azn-pattern-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin-top: 0.4rem;
}

.ab-pattern-table th,
.ab-pattern-table td,
.azn-pattern-table th,
.azn-pattern-table td {
    border: 1px solid #e5e7eb;
    padding: 0.35rem 0.45rem;
    text-align: left;
}

.ab-pattern-table th,
.azn-pattern-table th {
    background: #f3f4f6;
}

.ab-tagline,
.azn-tagline {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* -------------------------------------------------------
   Responsive
   ---------------------------------------------------- */

@media (max-width: 880px) {
    .ab-grid-2col,
    .azn-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .main-nav a {
        margin-left: 0;
        margin-right: 1rem;
    }
}
