/* ==========================================
   Text Style Plugin - Main Styles
   ========================================== */

.text-style-wrapper {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --primary: #ff0000;
    --primary-hover: #cc0000;
    --border: #dee2e6;
    --output-bg: #f1f3f5;
    --btn-secondary-bg: #e9ecef;
    --btn-secondary-text: #495057;
    
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 0 15px;
    box-sizing: border-box;
}

.text-style-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #a4c7e9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.text-style-header {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.text-style-input-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.text-style-input {
    width: 100%;
    height: 120px;
    padding: 15px;
    padding-bottom: 40px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
}

.text-style-input:focus {
    outline: none;
    border-color: var(--primary);
}

.text-style-btn-clear {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: background 0.2s, color 0.2s;
}

.text-style-btn-clear:hover {
    background: rgba(0, 0, 0, 0.1);
}

.text-style-row {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.text-style-label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-style-output-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.text-style-output-box {
    flex-grow: 1;
    background: var(--output-bg);
    padding: 12px;
    border-radius: 6px;
    font-size: 18px;
    min-height: 24px;
    color: var(--text-color);
    word-break: break-all;
    transition: background-color 0.3s;
    min-width: 150px;
}

.text-style-btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.text-style-btn-copy:hover {
    background: var(--primary-hover);
}

.text-style-btn-copy:active {
    transform: scale(0.97);
}

.text-style-btn-copy.copied {
    background: #2b8a3e !important;
}

.text-style-select {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--border);
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    outline: none;
}

.text-style-select:hover {
    background: var(--border);
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .text-style-wrapper {
        max-width: 100%;
        margin: 10px auto;
    }
    
    .text-style-container {
        padding: 20px;
    }
    
    .text-style-output-container {
        flex-direction: column;
    }
    
    .text-style-btn-copy {
        width: 100%;
    }
}