/* =========================================
   GLOBAL STYLES & FONTS
   ========================================= */

@font-face {
    font-family: "Gilroy";
    src: url("/assets/fonts/gilroy-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("/assets/fonts/gilroy-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f6f8fb;
    color: #111;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 80px 24px 60px;
}
/* =========================================
   HOME: TOOLS GRID (Cards)
   ========================================= */

.tools {
    display: grid;
    /* We gebruiken een vaste breedte limiet zodat 1 card niet de hele pagina vult */
    grid-template-columns: repeat(auto-fill, minmax(320px, 400px)); 
    gap: 32px;
    margin-top: 60px;
}

.tool-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f1f1f1;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #eaeaea;
}

/* Afbeelding styling binnen de card */
.tool-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    border-radius: 6px;
    object-fit: contain;
}

/* De titels op de cards (Bold & Gilroy) */
.tool-card .tool-title {
    font-family: "Gilroy", sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px;
    color: #111;
    line-height: 1.2;
}

.tool-card .tool-desc {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.logo {
    display: inline-block;
    margin-bottom: 32px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover {
    transform: translateY(-0px);
    opacity: 0.7;
}

.logo img {
    display: block;
    height: 40px; /* Zelfde hoogte als op home voor consistentie */
    width: auto;
}

/* Standaard H1 (Homepagina) */
h1 {
    font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(60px, 8vw, 80px);
    letter-spacing: -0.5px;
    line-height: 1.0;
}

/* De tagline (uitleg onder de titel - zowel Home als Tool) */
.tagline {
    color: #555;
    margin-top: 8px;
    font-size: clamp(16px, 2vw, 18px);
}

/* Specifieke styling voor de Tool pagina header */
.tool-page-header {
    margin-top: 20px; /* Dit compenseert het verschil in font-size om de baseline te lijnen */
    margin-bottom: 48px;
}

.tool-page-header h1 {
    font-family: "Gilroy", sans-serif !important;
    font-weight: 700 !important;
    /* We houden de font-size op max 60px voor de toolpagina */
    font-size: clamp(44px, 5vw, 60px) !important;
    letter-spacing: -0.5px;
    color: #111;
    line-height: 1.0; /* Gelijk aan homepagina */
    margin-bottom: 3px; /* Ruimte naar de tagline */
}

.tool-page-header h1 .divider {
    color: #ccc;
    font-weight: 400;
    padding: 0 4px;
}
/* Standaard gedrag (Desktop): Tekst loopt gewoon door */
.break {
    display: inline;
}

/* Mobiel gedrag (bijvoorbeeld onder de 900px): Tekst breekt af */
@media (max-width: 900px) {
    .break {
        display: block;
        margin-top: 5px; /* Optionele witruimte tussen de gebroken regels */
    }
}

/* =========================================
   TOOL LAYOUT & FORMS
   ========================================= */

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .tool-layout {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #00d1c3;
}

/* =========================================
   DROPDOWNS & UX (Toevoegen/Aanpassen)
   ========================================= */

/* Alle select velden in de tool */
select {
    appearance: none;
    background-color: #f0f2f5;
    /* Custom pijltje */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px !important;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.2s ease;
}

select:hover {
    border-color: #00d1c3 !important;
    background-color: #e8ebef;
}

/* De MAIN selector bovenaan de tool (Extra focus) */
#schemaType {
    font-size: 16px;
    padding: 16px;
    border: 2px solid #eee;
    background-color: #fff; /* Wit voor de start-stap */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

#schemaType:focus {
    border-color: #00d1c3;
    outline: none;
}

/* =========================================
   SCHEMA OUTPUT (Syntax Highlighting)
   ========================================= */

.output {
    background: #1E1E1E;         /* De echte VS Code achtergrond */
    color: #D4D4D4;              /* Standaard tekstkleur (lichtgrijs) */
    padding: 24px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;             /* Exacte VS Code font-size */
    line-height: 1.5;
    overflow: auto;
    min-height: 400px;
    white-space: pre-wrap;
    border: 1px solid #333;      /* Subtiele border voor diepte */
}

.key {
    color: #9CDCFE; /* Pink for keys */
    font-weight: bold;
}

.string {
    color: #CE9178; /* Teal for strings */
}

.number {
    color: #B5CEA8; /* Blue for numbers */
}

.boolean {
    color: #D4D4D4; /* Orange for booleans */
}

.null {
    color: #9ca3af; /* Grey for null */
    font-style: italic;
}

/* =========================================
   BUTTONS
   ========================================= */

.copy-btn {
    margin-top: 16px;
    background: #00d1c3;
    color: #111;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 12px rgba(30, 224, 140, 0.2);
}

/* =========================================
   FOOTER & RESPONSIVENESS
   ========================================= */

footer {
    margin-top: 80px;
    padding: 10px 0;
    border-top: 2px dotted #e0e0e0;
    color: #888;
    font-size: 13px;
}

@media (max-width: 700px) {
    .container {
        padding: 40px 20px;
    }
    
}