﻿
.box {
    flex: 1 1 50%;
    height: 280px;
    border: 1px dashed var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    cursor: pointer;
}

    .box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: none;
    }

.placeholder-text {
    font-size: 14px;
    opacity: .7;
    line-height: 1.6;
}

.box svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: .6;
}
/* Tabs */
.tabs {
    margin-top: 40px;
    display: flex;
    gap: 40px;
}

.tab {
    font-size: 16px;
    cursor: pointer;
    position: relative;
    padding-bottom: 4px;
}

    .tab.active:after, .tab:hover:after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: E16A2C;
    }

.tag-group {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
}

.tag {
    background: rgba(32,32,32,.8);
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.gentitle {
    position: absolute;
    left: 20px;
    bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.select-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.6);
    border: 1px solid var(--text);
    padding: 4px 14px;
    font-size: 14px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity .2s ease;
}

/* لودر شريط بسيط */
.loader {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .loader .bar {
        width: 140px;
        height: 6px;
        background: #e16a2c;
        border-radius: 3px;
        overflow: hidden;
    }

    .loader .progress {
        width: 0;
        height: 100%;
        background: var(--yellow);
        transition: width .2s linear;
    }

.flex-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.image-box {
    width: 300px;
    height: 168px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.upload-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .upload-label svg {
        width: 18px;
        height: 18px;
        fill: #00BFFF;
    }

.input-wrapper {
    flex: 1;
    /* background: #111;*/
    border: 1px solid #6c757d;
    border-radius: 8px;
    height: 168px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

    .input-wrapper .tab-inside {
        font-weight: 600;
        font-size: 14px;
        color: #6c757d;
        border-bottom: 2px solid #6c757d;
        width: fit-content;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }

    .input-wrapper .top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .input-wrapper .top-bar span {
            color: #777;
            font-size: 14px;
        }

        .input-wrapper .top-bar button {
            background: #222;
            color: #aaa;
            border: 1px solid #333;
            border-radius: 4px;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 12px;
        }

    .input-wrapper textarea {
        flex: 1;
        width: 100%;
        background: transparent;
        border: none;
        color: #212529;
        font-size: 14px;
        resize: none;
        margin: 8px 0;
    }

    .input-wrapper .bottom-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .input-wrapper .bottom-bar select,
        .input-wrapper .bottom-bar button {
            background: #222;
            color: white;
            border: 1px solid #444;
            border-radius: 4px;
            padding: 6px 12px;
            font-size: 12px;
            cursor: pointer;
        }

        .input-wrapper .bottom-bar button {
            background: #E16A2C;
            color: white;
            font-weight: 600;
            border: none;
            display: flex;
            align-items: center;
            gap: 4px;
        }

            .input-wrapper .bottom-bar button svg {
                width: 14px;
                height: 14px;
            }
/* حالة مختارة */
.read-more.is-selected {
    opacity: .55;
    cursor: default;
    pointer-events: none; /* anchors ما بتتعطّل، فنمنع الكليك كده */
    filter: saturate(.6);
}

    /* شكله ألطف عند الاختيار (اختياري) */
    .read-more.is-selected::after {
        content: " ✓";
        font-weight: 600;
    }

