/**
 * Lorem Ipsum Generator Styles
 * Lorem Ipsum產生器專用樣式
 *
 * @package Zipper
 */

/* 選項區域 */
.lorem-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
}

.lorem-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 140px;
}

.lorem-option-group label {
    font-size: 14px;
    color: #5f5a56;
    font-weight: 500;
}

.lorem-option-group select,
.lorem-option-group input[type="number"] {
    padding: 10px 14px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    font-size: 14px;
    min-width: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lorem-option-group select:focus,
.lorem-option-group input[type="number"]:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.lorem-option-group input[type="number"] {
    width: 100px;
}

/* 核取方塊選項 */
.lorem-checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 0.5rem;
    width: 100%;
    border-top: 1px dashed #e8e4dc;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.lorem-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lorem-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
    cursor: pointer;
}

.lorem-checkbox-group label {
    font-size: 14px;
    color: #2d2a26;
    cursor: pointer;
}

/* 結果區域 */
.lorem-result-area {
    margin-bottom: 1.5rem;
}

.lorem-output {
    width: 100%;
    min-height: 250px;
    padding: 16px;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    background: #faf9f7;
    color: #2d2a26;
    font-size: 15px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lorem-output:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 統計資訊 */
.lorem-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 14px 18px;
    background: #faf9f7;
    border-radius: 8px;
}

.lorem-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    color: #5f5a56;
}

.lorem-stat-value {
    color: #d4af37;
    font-weight: 700;
}

.lorem-stat i {
    color: #8c8579;
}

/* 按鈕區域 */
.lorem-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* 預覽區域 */
.lorem-preview {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e8e4dc;
}

.lorem-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lorem-preview-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lorem-preview-header h3 i {
    color: #d4af37;
}

.lorem-preview-content {
    padding: 20px;
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.8;
    color: #2d2a26;
    max-height: 400px;
    overflow-y: auto;
}

.lorem-preview-content p {
    margin-bottom: 1rem;
}

.lorem-preview-content p:last-child {
    margin-bottom: 0;
}

/* 響應式 */
@media (max-width: 768px) {
    .lorem-options {
        flex-direction: column;
        gap: 1rem;
    }

    .lorem-option-group {
        width: 100%;
    }

    .lorem-checkbox-options {
        flex-direction: column;
        gap: 1rem;
    }

    .lorem-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .lorem-actions {
        flex-direction: column;
    }

    .lorem-actions .tool-btn {
        width: 100%;
        justify-content: center;
    }
}
