/* Shared Name Generator Styles */
/* Can be customized per site using CSS variables */

:root {
    --name-gen-primary: #ff6b35;
    --name-gen-primary-hover: #e55a2b;
    --name-gen-text: #333;
    --name-gen-bg: #ffffff;
}

.name-generator-btn {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--name-gen-primary);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Site-specific overrides (e.g. position) can be added in site CSS files */

.name-generator-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.name-generator-btn span {
    display: block;
}

.name-generator-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-height: 100vh;
    background-color: var(--name-gen-bg);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.name-generator-panel.open {
    right: 0;
}

.name-generator-header {
    background-color: var(--name-gen-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.name-generator-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.name-generator-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.name-generator-close:hover {
    opacity: 0.8;
}

.name-generator-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.name-generator-section {
    flex: 1;
}

.name-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.name-btn {
    border: none;
    color: white;
    background-color: var(--name-gen-primary);
    border-radius: 8px;
    width: calc(50% - 5px);
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 4px 8px;
    line-height: 1.2;
}

.name-btn:hover {
    background-color: var(--name-gen-primary-hover);
}

.name-results {
    text-align: center;
    min-height: 200px;
    padding: 20px 10px 10px 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.generated-name {
    margin: 10px 0;
    font-size: 1.5rem;
    color: var(--name-gen-text);
    font-weight: 500;
}
