/* ========================================
   CREATE DISCUSSION PAGE
======================================== */

.create-discussion-page {
    width: 100%;
    overflow: hidden;
}

.create-discussion-container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* Hero */

.create-discussion-hero {
    padding: 75px 0 50px;
    background: #080808;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.create-discussion-hero .section-tag {
    color: #d4af37;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.create-discussion-hero h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 45px);
    margin: 18px 0;
}

.create-discussion-hero h1 span {
    color: #d4af37;
}

.create-discussion-hero p {
    max-width: 650px;
    color: #aaa;
    font-size: 15px;
    line-height: 1.8;
}

.back-to-feed {
    display: inline-block;
    margin-top: 22px;
    color: #d4af37;
    text-decoration: none;
    font-size: 14px;
}

.back-to-feed:hover {
    color: #fff;
}

/* Form Section */

.create-discussion-section {
    padding: 65px 0 85px;
    background: #0b0b0b;
}

.create-discussion-heading {
    margin-bottom: 35px;
}

.create-discussion-heading h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 10px;
}

.create-discussion-heading p {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}

/* Form */

.discussion-form {
    padding: 32px;
    background: #111;
    border: 1px solid #292929;
    border-radius: 7px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 28px;
}

.form-field label {
    color: #eee;
    font-size: 14px;
    font-weight: 600;
}

.form-field label span {
    color: #d4af37;
}

.form-field .optional-label {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.form-field input[type="text"],
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 15px;
    background: #191919;
    border: 1px solid #353535;
    border-radius: 5px;
    color: #eee;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-field input[type="text"]:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: #d4af37;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #777;
}

.form-field textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.7;
}

.form-field select {
    cursor: pointer;
}

.form-field small {
    color: #858585;
    font-size: 12px;
    line-height: 1.6;
}

/* Attachment Area */

.attachment-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 20px;
    background: #151515;
    border: 1px dashed #555;
    border-radius: 6px;
    text-align: center;
}

.attachment-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    color: #d4af37;
    font-size: 25px;
}

.attachment-area h3 {
    color: #eee;
    font-size: 17px;
    margin-bottom: 10px;
}

.attachment-area p {
    max-width: 470px;
    color: #999;
    font-size: 13px;
    line-height: 1.7;
}

.attachment-area input {
    max-width: 100%;
    margin-top: 18px;
}

.attachment-area input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.attachment-status {
    margin-top: 15px;
    color: #d4af37;
    font-size: 12px;
    line-height: 1.6;
}

/* Notice */

.discussion-form-notice {
    padding: 18px;
    margin: 10px 0 28px;
    background: rgba(212, 175, 55, 0.06);
    border-left: 3px solid #d4af37;
}

.discussion-form-notice strong {
    display: block;
    margin-bottom: 8px;
    color: #d4af37;
    font-size: 14px;
}

.discussion-form-notice p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.7;
}

/* Form Actions */

.discussion-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 10px;
}

.cancel-discussion-btn,
.submit-discussion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.cancel-discussion-btn {
    background: transparent;
    border: 1px solid #555;
    color: #ccc;
    transition: all 0.3s ease;
}

.cancel-discussion-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.submit-discussion-btn {
    background: #d4af37;
    border: 1px solid #d4af37;
    color: #111;
    cursor: not-allowed;
    opacity: 0.55;
}

/* Responsive */

@media (max-width: 768px) {
    .create-discussion-hero {
        padding: 60px 0 40px;
    }

    .create-discussion-section {
        padding: 50px 0 65px;
    }

    .discussion-form {
        padding: 24px 20px;
    }

    .discussion-form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cancel-discussion-btn,
    .submit-discussion-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .create-discussion-container {
        width: 92%;
    }

    .create-discussion-heading h2 {
        font-size: 23px;
    }

    .discussion-form {
        padding: 22px 16px;
    }

    .form-field {
        margin-bottom: 24px;
    }

    .attachment-area {
        padding: 28px 15px;
    }
}
