﻿/* ریست و فونت */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Yekan', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* صفحه اصلی */
.add-article-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* هدر */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

    .page-header h1 {
        color: #2563eb;
        font-size: 28px;
        margin-bottom: 10px;
    }

    .page-header p {
        color: #64748b;
    }

/* فرم */
.article-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 25px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #475569;
    }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

    .form-control:focus {
        border-color: #2563eb;
        outline: none;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* دکمه‌ها */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

    .btn-primary:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
    }

.btn-outline {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

    .btn-outline:hover {
        background: #f8fafc;
    }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* آپلود فایل */
.file-upload {
    position: relative;
    overflow: hidden;
}

    .file-upload input[type="file"] {
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

    .upload-area:hover {
        border-color: #2563eb;
        background: #f8fafc;
    }

.upload-icon {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* تگ‌ها */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tag {
    background: #e0e7ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.tag-remove {
    margin-right: 5px;
    cursor: pointer;
}

/* پیش‌نمایش */
.preview-section {
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.preview-title {
    color: #2563eb;
    font-size: 20px;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
