/**
 * TXT File Creator Tool Styles
 * Category: text
 * Slug: txt-file-creator
 *
 * @package Zipper
 */

/* File Settings Area */
.file-settings {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.file-name-group {
    flex: 1;
    min-width: 200px;
}

.file-name-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 8px;
}

.file-name-wrapper {
    display: flex;
    align-items: stretch;
}

.file-name-wrapper input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    color: #2d2a26;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 12px 0 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.file-name-wrapper input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    z-index: 1;
}

.file-extension {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #f0ede8;
    border: 1px solid #e8e4dc;
    border-left: none;
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #8c8579;
}

/* Text Input Area */
.txt-input-section {
    position: relative;
    margin-bottom: 24px;
}

.txt-input-section textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    font-size: 15px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.7;
    color: #2d2a26;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.txt-input-section textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.txt-input-section textarea::placeholder {
    color: #8c8579;
    font-family: inherit;
}

/* Input Info Bar */
.input-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding: 8px 16px;
    background: #f0ede8;
    border-radius: 8px;
    font-size: 13px;
    color: #8c8579;
}

.input-info-bar .stats {
    display: flex;
    gap: 24px;
}

.input-info-bar .stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-info-bar .stats .value {
    font-weight: 600;
    color: #d4af37;
}

/* File Preview Info */
.file-preview-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.preview-card {
    background: #faf9f7;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.preview-card.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.preview-card .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
}

.preview-card .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 4px;
}

.preview-card.highlight .value {
    color: #b8860b;
}

.preview-card .label {
    font-size: 13px;
    color: #8c8579;
}

/* Action Buttons Area */
.txt-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.txt-actions .tool-btn {
    min-width: 160px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
}

.txt-actions .tool-btn i {
    font-size: 18px;
}

.txt-actions .tool-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
    border: none;
}

.txt-actions .tool-btn-primary:hover {
    background: linear-gradient(135deg, #b8860b 0%, #9a7209 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.txt-actions .tool-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success Message */
.download-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #16a34a;
    font-size: 14px;
    font-weight: 500;
    margin-top: 24px;
}

.download-success.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.download-success i {
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .file-settings {
        flex-direction: column;
    }

    .file-preview-info {
        grid-template-columns: 1fr;
    }

    .txt-input-section textarea {
        min-height: 250px;
    }

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

    .txt-actions .tool-btn {
        width: 100%;
    }

    .input-info-bar {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .input-info-bar .stats {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .preview-card {
        padding: 16px;
    }

    .preview-card .value {
        font-size: 18px;
    }

    .txt-input-section textarea {
        min-height: 200px;
        padding: 16px;
        font-size: 14px;
    }
}
