/* style.css */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-color: #1f2937;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 600px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

main {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.row {
    display: flex;
    gap: 15px;
}
.row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

button#generateBtn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button#generateBtn:hover {
    background-color: var(--primary-hover);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.output-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    white-space: pre-wrap;
    line-height: 1.6;
}

#resultContainer h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

#copyBtn {
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

#copyBtn:hover {
    background: #eff0ff;
}

/* --- تنظیمات تبلیغات و محتوا --- */

.ad-box {
    width: 100%;
    min-height: 100px;
    background-color: #e5e7eb;
    
    /* نکته مهم: فعلاً مخفی است. برای فعال کردن تبلیغات، none را به flex تغییر دهید */
    display: none; 
    
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.ad-text {
    color: #9ca3af;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-section {
    margin-top: 40px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.content-section ul {
    padding-left: 20px;
    line-height: 1.8;
}

.content-section p {
    line-height: 1.6;
    color: #4b5563;
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: #6b7280;
}

@media (max-width: 480px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
}
