:root {
    --bg-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --border: #f1f5f9;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: system-ui, -apple-system, sans-serif; 
}

body {
    background: #f8fafc;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-banner {
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.lang-selector {
    position: absolute;
    top: 15px;
    right: 20px;
}

.lang-selector select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.lang-selector select option { 
    color: #000; 
}

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

h1 { 
    font-size: 2rem; 
    margin-bottom: 8px; 
    font-weight: 800; 
}

.subtitle { 
    color: rgba(255,255,255,0.9); 
    font-size: 0.95rem; 
}

.ads-box {
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin: 15px auto;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    max-width: 728px;
    min-height: 90px;
}

/* ==========================================
   OPPDATERT STYLING FOR VERKTØYKORTENE (SEO-TILPASSET)
   ========================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

/* Fjerner standard blåfarge og understreking fra lenken */
.tool-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

/* Hover-effekt på hele kortet */
.tool-card:hover:not(.soon) {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    border-color: var(--accent);
}

.tool-icon { 
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.tool-card h3 { 
    font-size: 1.1rem; 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 8px;
}

.tool-card p { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    line-height: 1.4; 
    margin-bottom: 16px; 
    flex-grow: 1; /* Dytter knappen til bunnen uansett lengde på tekst */
}

/* Knappe-styling som matcher din originale farge-logikk */
.tool-card .btn {
    display: block;
    text-align: center;
    background: #f1f5f9;
    color: var(--accent);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

/* Endrer farge på knappen inni kortet når man hovrer over kortet */
.tool-card:hover:not(.soon) .btn {
    background: var(--accent);
    color: white;
}

/* Spesialstil for "Kommer snart"-kortene */
.tool-card.soon {
    background: #f8fafc;
    border-style: dashed;
    opacity: 0.75;
}

.tool-card .btn.soon-btn {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* ==========================================
   BUNNTEKST OG RESPONSIVITET
   ========================================== */

footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: white;
    margin-top: auto;
}

@media (max-width: 600px) {
    .lang-selector { 
        position: static; 
        margin-bottom: 15px; 
        display: inline-block; 
    }
    h1 { 
        font-size: 1.6rem; 
    }
    .tools-grid { 
        grid-template-columns: 1fr; 
    }
}

