/* styles.css — Modern light theme for dissertation topics site */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #f8f9fa; --card-bg: #ffffff; --text: #212529;
    --text-light: #6c757d; --primary: #4361ee; --primary-light: #eef1ff;
    --border: #dee2e6; --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 12px; --radius-sm: 8px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    line-height: 1.6; min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.main-header { text-align: center; padding: 40px 20px 30px; }
.main-header h1 { font-size: 2em; color: var(--primary); margin-bottom: 10px; }
.subtitle { font-size: 1.1em; color: var(--text-light); margin-bottom: 15px; }
.description { max-width: 800px; margin: 0 auto; font-size: 0.95em; color: var(--text-light); }
.search-box { max-width: 600px; margin: 25px auto; }
.search-box input {
    width: 100%; padding: 14px 20px; border: 2px solid var(--border);
    border-radius: 50px; font-size: 1em; outline: none; transition: 0.2s;
    background: var(--card-bg);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,97,238,0.15); }
.category-nav {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 20px 25px; margin: 20px 0; box-shadow: var(--shadow);
}
.category-nav h3 { margin-bottom: 12px; font-size: 1.1em; }
.category-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.category-nav a {
    display: inline-block; padding: 6px 14px; background: var(--primary-light);
    color: var(--primary); border-radius: 50px; font-size: 0.85em;
    text-decoration: none; transition: 0.2s;
}
.category-nav a:hover { background: var(--primary); color: #fff; }
.category { margin: 30px 0; }
.cat-title {
    font-size: 1.4em; margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light); display: flex;
    align-items: center; gap: 8px;
}
.cat-count { font-size: 0.6em; color: var(--text-light); font-weight: normal; }
.topic-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.topic-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); padding: 14px 18px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    text-decoration: none; color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}
.topic-card:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--primary); color: var(--primary);
}
.topic-num {
    min-width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; background: var(--primary-light);
    color: var(--primary); border-radius: 50%; font-size: 0.75em;
    font-weight: 600; flex-shrink: 0;
}
.topic-title { font-size: 0.9em; line-height: 1.3; }
.topic-header { padding: 25px 0; }
.breadcrumbs { margin-bottom: 15px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.topic-header h1 { font-size: 1.8em; line-height: 1.3; color: var(--primary); }
.topic-content { max-width: 900px; }
.topic-section {
    background: var(--card-bg); border-radius: var(--radius);
    padding: 25px; margin: 20px 0; box-shadow: var(--shadow);
}
.topic-section h2 {
    font-size: 1.2em; color: var(--text); margin-bottom: 15px;
    padding-bottom: 8px; border-bottom: 2px solid var(--primary-light);
}
.topic-section p { margin-bottom: 12px; line-height: 1.7; }
.sector-list, .country-list {
    list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
}
.sector-list li, .country-list li {
    background: var(--primary-light); color: var(--primary);
    padding: 6px 14px; border-radius: 50px; font-size: 0.9em;
}
.publication-links ul { list-style: none; }
.publication-links li { margin: 8px 0; }
.publication-links a { color: var(--primary); text-decoration: none; font-weight: 500; }
.publication-links a:hover { text-decoration: underline; }
.search-tip { color: var(--text-light); font-style: italic; font-size: 0.9em; }
footer { margin-top: 40px; padding: 25px 0; text-align: center; border-top: 1px solid var(--border); }
.footer-links { margin-bottom: 10px; }
.footer-links a { color: var(--primary); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta, .main-footer p { color: var(--text-light); font-size: 0.85em; }
.main-footer { text-align: center; padding: 30px 0; }
.footer-note { color: var(--text-light); font-size: 0.85em; max-width: 600px; margin: 8px auto 0; }
@media (max-width: 768px) {
    .container { padding: 15px; }
    .main-header h1 { font-size: 1.4em; }
    .topic-grid { grid-template-columns: 1fr; }
    .topic-header h1 { font-size: 1.3em; }
    .category-nav ul { gap: 6px; }
    .category-nav a { font-size: 0.8em; padding: 4px 10px; }
}
@media (max-width: 480px) {
    .main-header { padding: 20px 10px; }
    .main-header h1 { font-size: 1.2em; }
    .topic-section { padding: 15px; }
}
