/* Basic Reset & Body Styling */
:root {
    --primary-bg: #1a1a2e; /* Dark background */
    --secondary-bg: #16213e; /* Slightly lighter dark for cards/sections */
    --text-color: #e0e0e0; /* Light text for dark background */
    --link-color: #007bff; /* Blue for links/accents */
    --link-hover: #6c5ce7; /* Lighter purple on hover */
    --border-color: #3e2060; /* Subtle border color */
    --button-primary: #4CAF50; /* Green for generate button */
    --button-secondary: #007BFF; /* Blue for copy button */
    --button-hover: #5cb85c; /* Darker green on hover */
    --input-bg: #222a44; /* Darker background for input */
    --input-border: #4a5c8c; /* Input border color */
    --tag-bg: #333d59; /* Background for individual tags */
    --tag-border: #5267a1; /* Border for individual tags */
    --shadow-color: rgba(0, 0, 0, 0.5); /* For subtle shadows */
    --container-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

/* Header Styling */
header {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between; /* Space out logo and right-side nav */
    align-items: center;
}

.logo img {
    height:35px; /* Adjust as needed for your logo size */
    width: auto;
    display: block; /* Ensures no extra space below image */
}

.header-right-nav ul {
    list-style: none;
    display: flex; /* Keep it as flex in case you add more items later */
}

.header-right-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1em;
    padding: 5px 10px; /* Add some padding around the link */
    border: 1px solid var(--link-color); /* Add a border to make it look like a button/pill */
    border-radius: 20px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-right-nav ul li a:hover {
    background-color: var(--link-color);
    color: white; /* Text color changes on hover */
    border-color: var(--link-hover);
}


/* Main Content Styling */
main {
    flex: 1; /* Allows main content to grow and push footer down */
    padding: 40px 0;
    text-align: center;
}

.generator-section {
    background-color: var(--secondary-bg);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    max-width: 800px;
    margin: 20px auto;
}

.generator-section h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.generator-section .description {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

input[type="text"] {
    flex-grow: 1;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1.1em;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]::placeholder {
    color: #888;
}

input[type="text"]:focus {
    border-color: var(--link-hover);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3); /* Soft glow */
}

button {
    padding: 15px 30px;
    font-size: 1.1em;
    background-color: var(--button-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold;
}

button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

button.copy-button {
    background-color: var(--button-secondary);
    margin-top: 25px; /* Space above copy button */
}

button.copy-button:hover {
    background-color: #0069d9; /* Darker blue on hover */
}

.results-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

#charCount {
    font-size: 0.95em;
    color: #b0b0b0;
    margin-bottom: 20px;
}

#tags, #hashtags { /* Apply to both tag and hashtag containers */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    padding: 15px;
    max-width: 700px;
    min-height: 80px; /* Ensure some height even if no tags */
    background-color: var(--input-bg); /* Use input background for tag box */
    border-radius: 8px;
    border: 1px dashed var(--input-border); /* Dashed border for results area */
    align-items: center; /* Vertically center content if few tags */
}

.tag {
    background-color: var(--tag-bg);
    color: var(--text-color);
    padding: 10px 18px;
    border-radius: 25px; /* More rounded pills */
    font-size: 0.95em;
    border: 1px solid var(--tag-border);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tag:hover {
    background-color: #444c6b; /* Slightly lighter hover for tags */
    transform: translateY(-1px);
}

/* Placeholder Page Styling (for About, Contact, etc.) */
.content-page {
    background-color: var(--secondary-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.content-page h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--link-color);
    text-align: center;
}

.content-page p, .content-page ul, .content-page ol {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: #c0c0c0;
}

.content-page ul, .content-page ol {
    margin-left: 25px;
}

.content-page li {
    margin-bottom: 8px;
}

/* Footer Styling */
footer {
    background-color: var(--secondary-bg);
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
    margin-top: auto; /* Pushes footer to the bottom */
    box-shadow: 0 -2px 10px var(--shadow-color);
    border-top: 1px solid var(--border-color);
}

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

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-nav ul li a {
    color: var(--text-color);
    font-size: 0.95em;
}

.footer-nav ul li a:hover {
    color: var(--link-hover);
}


/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }

    input[type="text"] {
        width: 100%;
        max-width: unset; /* Remove max-width on mobile */
    }

    button {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
    }

    .generator-section {
        padding: 30px 15px;
    }

    .generator-section h1 {
        font-size: 2em;
    }

    .content-page {
        margin: 20px auto;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 35px; /* Smaller logo on very small screens */
    }
    .header-right-nav ul li a {
        font-size: 0.9em;
        padding: 4px 8px;
    }
    .generator-section h1 {
        font-size: 1.8em;
    }
    .generator-section .description {
        font-size: 1em;
    }
    input[type="text"], button {
        font-size: 1em;
        padding: 12px 15px;
    }
    .tag {
        font-size: 0.85em;
        padding: 8px 14px;
    }
}