/* 1. VARIABLER & KONFIGURATION */
:root {
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --primary-blue: #1a73e8;
    --bg-gray: #f8f9fa;
    --text-main: #202124;
    --text-secondary: #5f6368;
    --border-radius: 28px;
    --card-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --search-border: #80868b;
    --google-border: #dfe1e5;
}

/* 2. GENEREL RESET */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    font-family: var(--font-stack);
    background-color: #ffffff;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.5;
}

/* 3. KOMPONENTER: HEADER & LOGO */
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--google-border);
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.logo-text {
    font-size: 30px;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.5px;
    margin-right: 30px;
}

.logo-text span {
    color: var(--primary-blue);
    font-weight: 700;
}

/* 4. HERO SECTION (FORSIDE) */
.hero {
    padding: 40px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero h2,.hero h1 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* 5. SØGEFELTET (DEN TILGÆNGELIGE KAPSEL) */
.search-box {
    position: relative;
    z-index: 1000;
}

.search-wrapper {
    background: #fff;
    border: 1px solid var(--search-border);
    border-radius: var(--border-radius);
    padding: 4px 8px 4px 16px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1001;
}

.search-wrapper.mini {
    max-width: 500px;
    height: 40px;
}

.search-icon-leading {
    display: flex;
    align-items: center;
    padding-right: 12px;
}

.search-icon-leading svg {
    width: 20px;
    height: 20px;
    fill: #5f6368;
}

.search-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    height: 48px;
    color: #000;
    width: 100%;
}

.search-wrapper input::placeholder {
    color: #70757a;
    opacity: 1;
}

.search-wrapper:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue);
    background: #fff;
}

.search-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #185abc;
}

/* 6. INSTANT SEARCH DROPDOWN */
.search-results-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: #fff;
    border-top: none;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 6px rgba(32,33,36,0.28);
    z-index: 1000;
    max-height: 285px;
    overflow-y: auto;
    padding-bottom: 8px;
}

.search-wrapper.has-results {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: transparent;
}

.search-wrapper.has-results .search-results-dropdown {
    display: block;
}

/* Scrollbar styling */
.search-results-dropdown::-webkit-scrollbar {
    width: 8px;
}
.search-results-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 10px;
    border: 2px solid #fff;
}
.search-results-dropdown::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

.result-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
}
.result-item:hover, .result-item.selected {
    background-color: #f1f3f4;
}
.result-item span {
    color: #202124;
    font-weight: 500;
}
.result-item.selected span {
    font-weight: 600;
}
.history-icon {
    width: 16px;
    height: 16px;
    fill: #9aa0a6;
    margin-right: 14px;
}

/* 7. DISCOVER GRID & EEAT */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.category-card {
    padding: 20px;
    border: 1px solid #dadce0;
    border-radius: 16px;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-card:hover { background: #f1f3f4; }
.category-card h3 { font-size: 16px; margin-bottom: 4px; }
.category-card p { font-size: 13px; color: var(--text-secondary); }

.eeat-minimal {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}
.eeat-minimal small {
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}
.eeat-minimal p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
}

/* 8. ARTIKEL LAYOUT (ARTICLE.PHP) */
.article-body {
	width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content-header h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 500;
}

.intro-box {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ORGANISEREDE LISTER (GRID) */
.rhyme-data-wrapper h2, .rhyme-lists h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 40px 0 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.rhyme-data-wrapper ul, .rhyme-lists ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.rhyme-data-wrapper li, .rhyme-lists li {
    font-size: 16px;
    color: var(--primary-blue);
    padding: 4px 0;
    transition: background 0.2s;
}
.rhyme-lists li:hover { background: #e8f0fe; cursor: pointer; }

/* LYRIC CARDS */
.lyric-card {
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
    white-space: pre-line;
    position: relative;
    overflow: hidden;
}
.lyric-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 40px;
    color: #f1f3f4;
    font-family: serif;
}

/* 9. FOOTER */
footer {
    background: var(--bg-gray);
    padding: 24px 20px;
    margin-top: auto;
    color: var(--text-secondary);
    font-size: 13px;
}
.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* 1. LAYOUT & TYPOGRAFI */
.goon-clean-layout { background: #fff; color: #202124; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 30px; }

.breadcrumb { font-size: 12px; text-transform: uppercase; color: #70757a; margin-bottom: 10px; letter-spacing: 0.5px; }

.tool-header { padding: 60px 0 40px; }
.tool-header h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.5px; margin-bottom: 8px; }
.focus-word { color: #1a73e8; } /* Kun ordet i overskriften er blåt */
.count-meta { font-size: 16px; color: #5f6368; }

/* 2. DICTIONARY COLUMNS (Listen med de 250 ord) */
.dictionary-columns h2 {
font-size: 18px;
    font-weight: 600;
    color: #202124;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    
    /* Google-trækket: En boks med lys baggrund og blå kant */
    background: #d9ecff;
    padding: 12px 20px;
    border-radius: 8px;
    
    margin: 40px 0 20px 0;
}

.dictionary-columns ul {
    list-style: none;
    /* Her skaber vi kolonnerne - ligesom i en ordbog */
    column-count: 4; 
    column-gap: 40px;
    margin-bottom: 20px;
}

.dictionary-columns li {
    font-size: 16px;
    padding: 6px 0;
    color: #202124; /* Sort tekst i stedet for blå */
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

/* Subtil interaktion uden at være prangende */
.dictionary-columns li:hover {
    color: #1a73e8;
    background: #f8f9ff;
    padding-left: 5px;
    cursor: pointer;
}

/* 3. VERSE & EXAMPLES */
.verse-area { background: #f8f9fa; padding: 60px 0; margin-top: 60px; }
.section-label { font-size: 14px; text-transform: uppercase; color: #70757a; margin-bottom: 30px; }

.verse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.verse-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-style: italic;
    line-height: 1.8;
    color: #3c4043;
}

/* 6. INFO GRID (De nye autoritets-bokse) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.info-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--google-border);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
}

.info-text h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 8px;
}

.info-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* TRENDING SECTION */
.trending-section {
    padding: 40px 0;
    border-top: 1px solid var(--google-border);
	border-bottom: 1px solid var(--google-border);
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trending-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trending-chips a {
    text-decoration: none;
    color: var(--text-main);
    background: #fff;
    border: 1px solid var(--google-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.trending-chips a:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #f8fbff;
}

/* Mobil-tilpasning */
@media (max-width: 600px) {
    .info-grid {
        padding: 40px 20px;
        gap: 40px;
    }
    .info-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Ryst-animation hvis man trykker enter på noget der ikke findes */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.no-match-shake {
    animation: shake 0.2s ease-in-out 0s 2;
    border-color: #d93025 !important; /* Google-rød */
}

.no-results-msg {
    padding: 20px;
    font-size: 14px;
    color: #70757a;
    text-align: center;
    font-style: italic;
}

/* ABOUT PAGE SPECIFIK CSS */
.about-container {
    max-width: 800px; /* Smallere bredde for bedre læsbarhed af lang tekst */
    margin: 60px auto;
    padding: 0 30px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header .badge {
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-header h1 {
    font-size: 48px;
    font-weight: 500;
    margin: 15px 0;
    color: var(--text-main);
}

.lead {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-main);
}

.about-section p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Stats Grid */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid var(--google-border);
    border-bottom: 1px solid var(--google-border);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Contact CTA */
.contact-cta {
    background: var(--bg-gray);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.contact-cta h3 {
    margin-bottom: 15px;
}

.btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    transition: all 0.2s;
}

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

@media (max-width: 600px) {
    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-header h1 {
        font-size: 32px;
    }
}

/* Tilføjelse til lister i artikler/tekstsider */
.about-section ul {
    margin: 20px 0;
    padding-left: 20px;
    list-style: none;
}

.about-section li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.about-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.dictionary-columns li a {
    color: #202124;
    text-decoration: none; /* Vi fjerner standard underscore */
    border-bottom: 1px solid #dfe1e5; /* En tynd, elegant lys grå streg */
    display: inline-block;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.dictionary-columns li a:hover {
    color: #1a73e8;
    border-bottom-color: #1a73e8; /* Stregen bliver blå ved hover */
    background-color: #f8f9ff;
}


/* 4. METHODOLOGY (E-E-A-T) */
.methodology-section { padding: 80px 0; border-top: 1px solid #eee; }
.methodology-content { max-width: 700px; }
.methodology-content h3 { font-size: 18px; margin-bottom: 12px; font-weight: 500; }
.methodology-content p { color: #5f6368; font-size: 15px; line-height: 1.6; }
.update-tag { margin-top: 20px; font-size: 12px; color: #9aa0a6; }

/* 5. MOBIL OPTIMERING */
@media (max-width: 768px) {
    .tool-header h1 { font-size: 30px; }
    .dictionary-columns ul {
        column-count: 2; /* 2 kolonner på mobil så det ikke bliver for småt */
        column-gap: 20px;
    }
}

/* 10. RESPONSIVE JUSTERINGER */
@media (max-width: 600px) {
    .search-btn { padding: 12px 16px; font-size: 14px; }
}

@media (min-width: 768px) {
    .hero { padding: 80px 20px; }
    .hero h2,.hero h1 { font-size: 48px; }
    .footer-content { flex-direction: row; justify-content: space-between; }
    .category-card { padding: 24px; }
    .search-btn { padding: 12px 24px; font-size: 16px; }
}

/* MOBIL STICKY HEADER LOGIK */
@media (max-width: 768px) {
    .inner-page .main-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    .header-container {
        flex-direction: column;
        gap: 0px;
        padding: 0px 15px;
    }
    .logo-text {
        margin-right: 0;
        text-align: center;
        width: 100%;
        display: block;
    }
    .header-search {
        width: 100%;
        max-width: 100%;
    }
    .search-wrapper.mini { width: 100%; max-width: 100%; }
    
    .rhyme-data-wrapper ul, .rhyme-lists ul {
        grid-template-columns: repeat(2, 1fr);
    }
}