/* Lorem Ipsum Generator Tool Styles */

.lorem-generator-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.generation-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: var(--background-hover);
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.radio-option input[type="radio"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-option span {
    font-size: 0.9375rem;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.amount-input {
    width: 100%;
    max-width: 150px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-color);
    transition: all 0.2s ease;
    font-family: inherit;
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    user-select: none;
}

.checkbox-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.checkbox-option span {
    font-size: 0.9375rem;
    color: var(--text-color);
}

.output-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.output-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.textarea-wrapper {
    position: relative;
    width: 100%;
}

.lorem-output-textarea {
    width: 100%;
    padding: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--background-secondary);
    color: var(--text-color);
    resize: vertical;
    min-height: 300px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.lorem-output-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

.lorem-output-textarea:read-only {
    background: var(--background-secondary);
    cursor: default;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-color-alpha);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-copy,
.btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy:hover,
.btn-clear:hover {
    border-color: var(--primary-color);
    background: var(--background-hover);
    transform: translateY(-1px);
}

.btn-copy:active,
.btn-clear:active {
    transform: translateY(0);
}

.copy-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--success-color, #10b981);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    z-index: 1000;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .generation-controls {
        padding: 1.25rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .radio-option {
        padding: 0.625rem 0.875rem;
    }

    .amount-input {
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-copy,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }

    .copy-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .lorem-output-textarea:read-only {
        background: var(--background-secondary);
    }
}
