/* Relationship Headcanon Generator - Frontend Styles */

.rhg-full-width-wrapper {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2rem -2rem 0 -2rem;
    padding: 2rem;
}

.rhg-generator-container {
    max-width: 600px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rhg-generator-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rhg-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rhg-input-section {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rhg-name-input {
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    min-width: 150px;
    flex: 1;
    max-width: 200px;
    transition: border-color 0.2s;
}

.rhg-name-input:focus {
    outline: none;
    border-color: #000;
}

.rhg-name-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Result Section */
.rhg-result-section {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.rhg-headcanon-text {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    white-space: pre-wrap;
    min-height: 100px;
    position: relative;
}

.rhg-result-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.rhg-action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #666;
    width: 36px;
    height: 36px;
}

.rhg-action-btn:hover {
    background: #000;
    color: white;
    border-color: #000;
}

.rhg-error-text {
    font-size: 0.9rem;
    color: #d32f2f;
    margin: 1rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rhg-generate-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #000 0%, #333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rhg-generate-button:hover:not(:disabled) {
    background: linear-gradient(90deg, #333 0%, #000 100%);
    transform: translateY(-1px);
}

.rhg-generate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Toast Notification */
.rhg-toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rhg-toast.success {
    background: #000;
    border: 1px solid #333;
}

.rhg-toast.error {
    background: #333;
    border: 1px solid #000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .rhg-full-width-wrapper {
        margin: -1rem -1rem 0 -1rem;
        padding: 1rem;
    }

    .rhg-generator-box {
        padding: 1.5rem;
    }

    .rhg-title {
        font-size: 1.3rem;
        white-space: normal;
    }

    .rhg-input-section {
        flex-direction: column;
        align-items: center;
    }

    .rhg-name-input {
        max-width: 100%;
        min-width: auto;
    }

    .rhg-headcanon-text {
        font-size: 0.9rem;
    }

    .rhg-result-actions {
        justify-content: center;
    }

    .rhg-toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: none;
    }
}
