/* --- Global Styles & Typography --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #ffffff;
    color: #202124;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* --- Layout --- */
.container {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "header"
        "main";
    height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
}

header {
    grid-area: header;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

main {
    grid-area: main;
    padding: 2rem;
    overflow-y: auto;
}

/* --- UI Elements --- */
h1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    margin: 0 0 1rem 0;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
}

.search-container {
    display: flex;
    margin-top: 1.5rem;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0.5rem 1rem;
    transition: box-shadow 0.3s ease;
    max-width: 500px; /* Reduced max-width */
}

.search-container:hover,
.search-container:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

#search-input {
    flex-grow: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

#search-button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
    color: #4285f4;
    font-size: 1rem;
    padding-left: 1rem;
}

#search-button:hover {
    text-decoration: underline;
}

/* --- The Core Interaction --- */
.topic-link {
    text-decoration: none; /* Remove underline */
    color: inherit;       /* Inherit color from parent */
    cursor: pointer;      /* Show pointer on hover */
    background: transparent; /* No background color */
    border: none;         /* No border */
    padding: 0;           /* No padding */
    font: inherit;        /* Inherit font styles */
}

/* On hover, we can add a very subtle visual cue if desired */
.topic-link:hover {
    background-color: rgba(66, 133, 244, 0.1); /* Faint blue highlight */
}

.welcome-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}
