@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

:root {
    --primary-color: #333333; /* Not Green */
    --primary-dark: #388E3C;
    --secondary-color: #2196F3; /* Blue */
    --accent-color: #FFC107; /* Amber */
    --text-color: #333;
    --text-light: #555;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --border-color: #ccc;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    /*padding: 20px;*/
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8rem;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--accent-color);
}

/* --- New Logo Styles --- */
.logo-container {
    display: flex; /* Aligns logo image and text horizontally */
    align-items: center; /* Vertically centers them */
    gap: 10px; /* Space between logo and text */ 
  
}

.logo-container a {
    text-decoration: none; /* Remove underline from the link */
    display: flex; /* Ensures image and text stay together if line breaks */
    align-items: center;
    color: inherit; /* Inherit color from parent for consistency if needed */
}

.site-logo {
    height: 150px; /* Base height for the logo */
    width: auto; /* Maintain aspect ratio */
    display: block; /* Ensures proper spacing and sizing */
    /* For higher resolution screens (Retina displays etc.) */
    /* This doesn't directly use different image files, but ensures the image scales cleanly.
       If you had a @2x or @3x image, you'd typically use srcset in the HTML or more advanced CSS.
       For a vector-like PNG, scaling up should look decent up to a point.
    */
    image-rendering: -webkit-optimize-contrast; /* Webkit browsers */
    image-rendering: crisp-edges; /* Modern browsers */
    /*image-rendering: pixelated;  Fallback for some older */
    /* Note: if the image is truly vector (SVG), this is less critical as it scales infinitely */
}

.site-title {
    color: var(--bg-white); /* Ensure text color matches header */
    font-size: 1.8rem; /* Match header h1 font size */
    font-weight: 700;
    white-space: nowrap; /* Prevent title from breaking lines */
    transition: color 0.3s ease;
}

.logo-container a:hover .site-title {
    color: var(--accent-color); /* Hover effect for the text */
}

/* Adjust header h1 styling if it was previously targeting h1 directly */
header h1 {
    /* If you had styles on header h1 before, you might want to remove them
       or ensure they don't conflict with .site-title */
    margin: 0; /* Important to reset if h1 had default margins */
}

/* Responsive adjustments for the logo */
@media (max-width: 768px) {
    .site-logo {
        height: 150px; /* Slightly smaller logo on smaller screens */
    }
    .site-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 100px; /* Even smaller logo on mobile */
    }
    .site-title {
        font-size: 1.4rem;
    }
    .logo-container {
        gap: 8px; /* Reduce gap on smaller screens */
    }
}

/* Hero Section */
.hero {
    background: var(--bg-white);
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero h2 {
    color: var(--primary-dark);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

textarea {
    width: 80%;
    max-width: 700px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 300px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

button[type="submit"] {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Results Block */
.results-block {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: left;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.results-block h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.results-block h4 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.results-block p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Content Sections (About, Contact, Terms, Privacy) */
.content-section {
    background: var(--bg-white);
    padding: 60px 0;
    margin-top: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.content-section h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.content-section h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.content-section p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.content-section a {
    color: var(--secondary-color);
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--bg-white);
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: #1976D2; /* Darker blue */
    transform: translateY(-2px);
}


/* Footer */
footer {
    background: var(--text-color);
    color: var(--bg-white);
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 15px;
        padding-left: 0;
    }

    header nav ul li {
        margin: 0 10px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    textarea {
        width: 95%;
    }

    button[type="submit"] {
        width: 80%;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header nav ul li {
        margin: 0 5px;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    button[type="submit"] {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .results-block h3 {
        font-size: 1.5rem;
    }

    .results-block h4 {
        font-size: 1.2rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .footer-links a {
        margin: 0 5px;
    }
}

/* Style the entire keyword item */
.keyword-item {
    background-color: #e0f7fa; /* Light blue background */
    border-radius: 4px;
    padding: 2px 6px;
    margin-right: 5px; /* Space between items */
    display: inline-flex; /* Keeps it on one line but allows padding */
    align-items: center;
    white-space: nowrap; /* Prevent breaking lines inside an item */
}

/* Style the word/phrase itself */
.keyword-text {
    font-weight: bold;
    color: #00796b; /* Teal color */
    margin-right: 4px;
}

/* Style the count */
.keyword-count {
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
    opacity: 0.7;
    background-color: #17a2b8;
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}

/* Style the paragraph containing the keywords */
#keywordsResult p {
    line-height: 1.8; /* Improve readability if items wrap */
}


/* Style for the summary sections */
.summary-section {
    margin-bottom: 10px; /* Space between different summary categories */
}

.summary-title {
    font-weight: bold;
    color: #333; /* Darker color for titles */
    margin-right: 5px; /* Space between title and content */
}

.summary-content {
    color: #555; /* Slightly lighter color for content */
    display: inline; /* Keep content on the same line as the title */
}


/* udpate sep 23 */
/* --- SEO / Intro Enhancements --- */
.hero h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.intro {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 300;
}

/* Accessibility: hide elements visually but keep for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Footer SEO note */
.footer-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-color); /* Changed */
    color: var(--bg-white);
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    z-index: 2000;
    display: none;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

.cookie-consent button {
    background: var(--accent-color);
    border: none;
    padding: 6px 12px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}

.cookie-consent button:hover {
    background: #ffb300;
}

h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 15px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

ul {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

ul li {
    margin-bottom: 5px;
    line-height: 1.6;
}
