/*
|--------------------------------------------------------------------------
| DekaNon AI - Copywriter
|--------------------------------------------------------------------------
| Scoped CSS
|--------------------------------------------------------------------------
*/

.dai-copywriter-generator {

    width: 100%;
  

    margin: 30px auto;
    padding: 32px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 24px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);

}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.dai-copywriter-header {

    margin-bottom: 28px;

}


.dai-copywriter-header h2 {

    margin: 0 0 8px;

    font-size: 28px;

    line-height: 1.3;

    font-weight: 700;

    color: #111827;

}


.dai-copywriter-header p {

    margin: 0;

    font-size: 15px;

    line-height: 1.6;

    color: #6b7280;

}


/*
|--------------------------------------------------------------------------
| Field
|--------------------------------------------------------------------------
*/

.dai-copywriter-field {

    margin-bottom: 20px;

}


.dai-copywriter-field label {

    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #374151;

}


/*
|--------------------------------------------------------------------------
| Textarea
|--------------------------------------------------------------------------
*/

.dai-copywriter-field textarea {

    display: block;

    width: 100%;

    min-height: 130px;

    padding: 16px;

    box-sizing: border-box;

    resize: vertical;

    border: 1px solid #d1d5db;

    border-radius: 14px;

    background: #f9fafb;

    color: #111827;

    font-family: inherit;

    font-size: 15px;

    line-height: 1.6;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.dai-copywriter-field textarea::placeholder {

    color: #9ca3af;

}


.dai-copywriter-field textarea:focus {

    border-color: #6366f1;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.10);

}


/*
|--------------------------------------------------------------------------
| Select
|--------------------------------------------------------------------------
*/

.dai-copywriter-field select {

    display: block;

    width: 100%;

    min-height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #d1d5db;

    border-radius: 12px;

    background: #f9fafb;

    color: #111827;

    font-family: inherit;

    font-size: 15px;

    cursor: pointer;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.dai-copywriter-field select:focus {

    border-color: #6366f1;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.10);

}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.dai-copywriter-actions {

    margin-top: 24px;

}


.dai-copywriter-actions button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    width: 100%;

    min-height: 52px;

    padding: 14px 22px;

    border: 0;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #6366f1,
            #8b5cf6
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

}


.dai-copywriter-actions button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(99, 102, 241, 0.30);

}


.dai-copywriter-actions button:active {

    transform: translateY(0);

}


.dai-copywriter-actions button:disabled {

    opacity: 0.65;

    cursor: wait;

    transform: none;

}


/*
|--------------------------------------------------------------------------
| Result Container
|--------------------------------------------------------------------------
*/

.dai-copywriter-result {

    margin-top: 28px;

}


.dai-copywriter-success {

    padding: 22px;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    background: #f9fafb;

    color: #1f2937;

    font-size: 16px;

    line-height: 1.8;

    white-space: pre-wrap;

    word-break: break-word;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);

}


/*
|--------------------------------------------------------------------------
| Loading
|--------------------------------------------------------------------------
*/

.dai-copywriter-loading {

    padding: 20px;

    border-radius: 16px;

    background: #f5f3ff;

    color: #6d28d9;

    font-size: 14px;

    font-weight: 600;

    text-align: center;

}


/*
|--------------------------------------------------------------------------
| Error
|--------------------------------------------------------------------------
*/

.dai-copywriter-error {

    margin-top: 20px;

    padding: 16px 18px;

    border: 1px solid #fecaca;

    border-radius: 14px;

    background: #fef2f2;

    color: #b91c1c;

    font-size: 14px;

    line-height: 1.6;

}


/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .dai-copywriter-generator {

        margin: 20px auto;

        padding: 22px;

        border-radius: 20px;

    }


    .dai-copywriter-header h2 {

        font-size: 24px;

    }


    .dai-copywriter-field textarea {

        min-height: 120px;

    }

}


@media (max-width: 480px) {

    .dai-copywriter-generator {

        margin: 15px auto;

        padding: 18px;

        border-radius: 16px;

    }


    .dai-copywriter-header {

        margin-bottom: 22px;

    }


    .dai-copywriter-header h2 {

        font-size: 22px;

    }


    .dai-copywriter-header p {

        font-size: 14px;

    }


    .dai-copywriter-actions button {

        min-height: 50px;

        font-size: 14px;

    }


    .dai-copywriter-success {

        padding: 18px;

        font-size: 15px;

        line-height: 1.7;

    }

}