/*
 * Elf Name Generator Plugin Styles
 * Optimized for Kadence Theme full-width templates
 */

/* Main container for the generator */
.elf-name-generator-container {
    max-width: 100%; /* Use full width of the container */
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light background for contrast */
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* SEO Content Styling */
.elf-name-generator-seo-content h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 0.5em;
    text-align: center;
}

.elf-name-generator-seo-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

/* Generator Tool Styling */
.elf-name-generator-tool {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.generator-controls {
    display: flex;
    flex-wrap: wrap; /* Allow controls to wrap on smaller screens */
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.generator-controls select {
    min-width: 100px; /* Give select boxes a minimum width */
}

.generator-controls select,
.generator-controls button {
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.generator-controls select {
    border: 1px solid #ccc;
    background-color: #fff;
}

.generator-controls button {
    background-color: #0073aa; /* WordPress primary color */
    color: white;
    border: 1px solid #0073aa;
    font-weight: bold;
}

.generator-controls button:hover {
    background-color: #005177;
    border-color: #005177;
}

/* Result Display */
.generator-result {
    padding: 15px;
    border-top: 1px dashed #eee;
}

.generator-result ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.generator-result li {
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 500;
    margin: 10px 20px;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

/* Kadence Theme Compatibility & Full-Width Styling */
/* The user requested no header/footer, which is a page template setting in Kadence.
   We add specific CSS to ensure the content is not constrained by default theme padding/max-width
   when the user selects a "Full Width" or "No Header/Footer" template. */

/* Target the body class added by the plugin to apply specific overrides */
body.elf-name-generator-page #content {
    /* This targets the main content area in Kadence */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.elf-name-generator-page .entry-content {
    /* This targets the inner content wrapper */
    max-width: 100% !important;
    padding: 0 !important;
}

/* Ensure the generator container itself respects the full width of the content area */
body.elf-name-generator-page .elf-name-generator-container {
    padding: 40px 20px; /* Add more vertical padding for a better look */
    border: none; /* Remove the border if the user wants a truly seamless look */
    background-color: transparent; /* Let the page background show through */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .generator-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .generator-controls select,
    .generator-controls button {
        width: 100%;
    }

    .generator-result li {
        font-size: 1.2em;
        margin: 5px 0;
        width: 100%;
    }
}
