/* UK Address Name Generator - British Style */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #012169;
    --secondary: #00247d;
    --accent: #cf142b;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --border: #e1e4e8;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(180deg, #012169 0%, #00247d 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag { font-size: 1.8rem; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 18px 16px;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: Arial, sans-serif;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.hero {
    background: linear-gradient(135deg, #012169 0%, #00247d 50%, #012169 100%);
    padding: 80px 20px;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: "🇬🇧";
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    opacity: 0.3;
}

.hero h1 { font-size: 2.8rem; margin-bottom: 15px; font-family: Arial, sans-serif; font-weight: 700; }
.hero p { font-size: 1.2rem; opacity: 0.95; max-width: 700px; margin: 0 auto; font-family: Arial, sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

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

.tool-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tool-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(1,33,105,0.15); border-color: var(--primary); }
.tool-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; font-family: Arial, sans-serif; }
.tool-card p { color: var(--text-light); font-size: 0.9rem; }

.tool-page { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.tool-page h1 { color: var(--primary); margin-bottom: 20px; font-size: 2rem; }
.tool-page .description { color: var(--text-light); margin-bottom: 25px; font-size: 1.05rem; }

.tool-input, .tool-textarea, .tool-select {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    resize: vertical;
    margin-bottom: 15px;
    transition: border-color 0.3s;
    background: var(--white);
}

.tool-select { min-height: 50px; cursor: pointer; }
.tool-input:focus, .tool-textarea:focus, .tool-select:focus { outline: none; border-color: var(--primary); }

.tool-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-family: Arial, sans-serif;
}

.btn:hover { background: var(--secondary); }
.btn-secondary { background: #666; }
.btn-secondary:hover { background: #444; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: #a01025; }

.result-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--border);
    min-height: 100px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 25px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.content h1 { font-size: 2rem; color: var(--primary); margin-bottom: 20px; border-bottom: 3px solid var(--primary); padding-bottom: 15px; font-family: Arial, sans-serif; }
.content h2 { font-size: 1.5rem; color: var(--dark); margin: 2rem 0 1rem; font-family: Arial, sans-serif; }
.content h3 { font-size: 1.2rem; color: var(--dark); margin: 1.5rem 0 0.8rem; font-family: Arial, sans-serif; }
.content p { font-size: 1.05rem; margin-bottom: 1.2rem; text-align: justify; }
.content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5rem 0; }
.content a { color: var(--primary); text-decoration: underline; }
.content ul, .content ol { margin: 1rem 0 1.5rem 1.5rem; }
.content li { margin-bottom: 0.6rem; }

.related-content { background: #f0f4f8; padding: 25px; border-radius: 8px; margin-top: 2.5rem; border-left: 4px solid var(--primary); }
.related-content h3 { color: var(--primary); margin-bottom: 1rem; }
.related-content ul { list-style: none; margin: 0; }
.related-content li { margin-bottom: 8px; }
.related-content a { color: var(--primary); text-decoration: none; }

footer { background: var(--dark); color: rgba(255,255,255,0.8); padding: 40px 20px; text-align: center; margin-top: 50px; font-family: Arial, sans-serif; }
footer a { color: #fff; text-decoration: none; }

.articles-list { display: grid; gap: 20px; }
.article-card { background: var(--white); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); transition: all 0.3s; }
.article-card:hover { border-left-color: var(--accent); }
.article-card h2 { font-size: 1.2rem; margin-bottom: 10px; font-family: Arial, sans-serif; }
.article-card h2 a { color: var(--primary); text-decoration: none; }
.article-card p { color: var(--text-light); font-size: 0.95rem; }

@media (max-width: 768px) {
    .nav-container { flex-direction: column; text-align: center; }
    .nav-links { justify-content: center; width: 100%; }
    .hero h1 { font-size: 1.8rem; }
    .tools-grid { grid-template-columns: 1fr; }
}
