/* Trade Page Styles */

.trade-banner {
    padding: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.banner-inner {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.08);
}

.banner-text h2 {
    font-size: 18px;
    color: #ea580c;
    margin-bottom: 6px;
    font-weight: 700;
}

.banner-text p {
    font-size: 12px;
    color: #f97316;
}

.banner-img {
    font-size: 40px;
    color: #fb923c;
    opacity: 0.8;
}

.input-section {
    padding: 16px;
    background: #fff;
}

.input-section.border-bottom {
    border-bottom: 1px solid #f5f5f5;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

#trade-title {
    width: 100%;
    border: none;
    font-size: 16px;
    color: #333;
    outline: none;
    padding: 0;
}

#trade-desc {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: none;
    font-size: 15px;
    color: #333;
    outline: none;
    padding: 0;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #bbb;
    margin-top: 5px;
}

.upload-section {
    padding: 20px 16px;
    background: #fff;
    border-top: 8px solid #f9f9f9;
}

.upload-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.upload-section .label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.count-hint {
    font-size: 12px;
    color: #bbb;
}

.upload-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-btn {
    width: 90px;
    height: 90px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 11px;
}

.upload-btn i {
    font-size: 24px;
}

.options-list {
    background: #fff;
}

.options-list.border-top {
    border-top: 8px solid #f9f9f9;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.option-item .label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.price-input-box .currency {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.price-input {
    border: none;
    text-align: right;
    font-size: 15px;
    color: #333;
    outline: none;
    width: 100px;
}

.value-placeholder {
    font-size: 14px;
    color: #bbb;
}

.value-placeholder.active-val {
    color: #333;
}

.value-text.green {
    color: #27ae60;
    font-size: 14px;
}

.option-item .arrow {
    font-size: 12px;
    color: #ccc;
}

/* Modal Styling */
.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 0 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px 20px;
}

.modal-header .title {
    font-size: 17px;
    font-weight: 600;
}

.modal-header .close-modal {
    color: #ccc;
    font-size: 18px;
}

.condition-list {
    padding: 0 20px;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
}

.c-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.c-icon.orange { background: #fff7ed; color: #ea580c; }
.c-icon.yellow { background: #fefce8; color: #ca8a04; }
.c-icon.green { background: #f0fdf4; color: #16a34a; }
.c-icon.blue { background: #eff6ff; color: #2563eb; }
.c-icon.gray { background: #f9fafb; color: #4b5563; }

.c-text h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.c-text p {
    font-size: 12px;
    color: #999;
}

.cancel-modal-btn {
    width: 100%;
    padding: 16px;
    background: #fff;
    border: none;
    border-top: 1px solid #f5f5f5;
    font-size: 15px;
    color: #666;
    margin-top: 10px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #f5f5f5;
}

.post-header .back-btn { font-size: 18px; color: #333; }
.post-header .header-title { font-size: 17px; font-weight: 600; }
.publish-submit-btn {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}
