body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
}

header {
    background-color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e0e6ed;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #1a202c;
}

header p {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: #718096;
}

nav {
    margin-top: 1rem;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: #e2e8f0;
    color: #2d3748;
}

.container {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.extension-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.extension-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.extension-card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #2d3748;
}

.extension-card p {
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #4285F4;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #3367D6;
}

.cta-button img {
    height: 24px;
    margin-right: 12px;
}

.summarizer-widget {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
}

.summarizer-widget h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #2d3748;
    text-align: center;
}

.summarizer-widget p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: center;
}

#reddit-url {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e6ed;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

#summarize-button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #4285F4;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#summarize-button:hover {
    background-color: #3367D6;
}

#summarize-button:disabled {
    background-color: #a0aec0;
    cursor: not-allowed;
}

#summary-output {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f4f7f9;
    border-radius: 5px;
    min-height: 50px;
    color: #4a5568;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2d3748;
    text-decoration: underline;
}
