/* =========================================================
   🎥 ALLO UPLOAD DRAWER STYLES (ENTERPRISE HI-TECH)
   ========================================================= */

/* 1. БАСТЫ СУЫРЫЛЫП ШЫҒАТЫН ПАНЕЛЬ (DRAWER OVERLAY) */
.upload-drawer {
    position: fixed;
    top: 0;
    right: -450px; /* Басында оң жақта жасырынып тұрады */
    width: 420px;
    height: 100vh;
    background: #0d1117; /* GitHub Күңгірт фоны */
    border-left: 1px solid #30363d;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Жұмсақ суырылу */
}

.upload-drawer.is-active {
    right: 0; /* Белсенді болғанда экранға шығады */
}

/* Мобильді құрылғыларға бейімдеу (Адаптив) */
@media (max-width: 480px) {
    .upload-drawer {
        width: 100%;
        right: -100%;
    }
}

/* 2. ЖОҒАРҒЫ БӨЛІМ ЖӘНЕ ЖАБУ БАТЫРМАСЫ */
.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #30363d;
    background: #161b22;
}

.drawer-header h3 {
    margin: 0;
    color: #f0f6fc;
    font-size: 1.25rem;
    font-weight: 600;
}

.btn-close-alt {
    position: absolute;
    top: 18px;
    right: 20px;
    background: transparent;
    border: none;
    color: #8b949e;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.btn-close-alt:hover {
    color: #ff7b72; /* Қызыл жарық */
}

/* 3. ФОРМА СЕКЦИЯЛАРЫ (MODERN INPUTS) */
.drawer-content {
    background: #0d1117;
}

.form-section-modern {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.section-label {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ⚡ ЛИМИТ БЕЙДЖДЕРІ */
.limit-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: bold;
}
.standard-blue { background: rgba(88, 166, 255, 0.15); color: #58a6ff; }
.talent-gold { background: rgba(218, 165, 32, 0.15); color: #daa520; animation: pulseGold 2s infinite; }

@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(218, 165, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0); }
}

/* 4. HASHTAG PILLS (АЙДАР ТАНДАУ) */
.hashtag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag-pill {
    cursor: pointer;
}

.pill-body {
    padding: 8px 14px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pill-icon { font-size: 1rem; }
.pill-hashtag { font-size: 0.85rem; color: #c9d1d9; font-weight: 500; }

.pill-body:hover {
    border-color: #8b949e;
    background: #21262d;
}

.pill-body.active {
    background: rgba(22, 27, 34, 0.8);
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.1);
}

/* 5. ИМПУТТАР МЕН СЕЛЕКТТЕР */
.form-control-modern {
    width: 100%;
    padding: 10px 12px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-modern:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.15);
}

select.form-control-modern {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238b949e'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* БАҒА INPUT ПАЙЫЗДАРЫ ЖӘНЕ WHATSAPP */
.price-input-wrapper, .phone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-label {
    position: absolute;
    right: 14px;
    color: #8b949e;
    font-weight: bold;
}

.whatsapp-icon {
    position: absolute;
    left: 14px;
    color: #25d366; /* Түпнұсқа WhatsApp жасыл */
    font-size: 1.1rem;
}

.phone-field {
    padding-left: 38px;
}

/* 6. ФОТО ЖҮКТЕҮ ГРИДІ (PHOTO UPLOAD GRID) */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 10px;
}

@media (max-width: 400px) {
    .photo-upload-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #30363d;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-photo-btn:hover { background: #ff4444; }

.add-photo-placeholder {
    width: 100px;
    height: 100px;
    border: 1px dashed #484f58;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    background: #161b22;
    transition: border-color 0.2s, background 0.2s;
}

.add-photo-placeholder:hover {
    border-color: #58a6ff;
    background: #21262d;
}

.add-photo-placeholder i { font-size: 1.3rem; color: #8b949e; }
.add-photo-placeholder span { font-size: 0.75rem; color: #8b949e; }

/* 7. ВИДЕО ЖҮКТЕҮ АЙМАҒЫ (MEDIA CONTAINER) */
.media-upload-wrapper {
    width: 100%;
    border: 1px dashed #484f58;
    border-radius: 8px;
    background: #161b22;
    overflow: hidden;
    transition: border-color 0.2s;
}

.media-upload-wrapper:has(input:focus), .media-upload-wrapper:hover {
    border-color: #58a6ff;
}

.media-upload-placeholder {
    display: block;
    width: 100%;
    min-height: 140px;
    cursor: pointer;
}

.placeholder-content {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.placeholder-content i { font-size: 2.5rem; color: #58a6ff; }
.placeholder-content p { margin: 0; font-size: 0.95rem; color: #c9d1d9; }

/* ВИДЕО ПРЕВЬЮ ПАНЕЛІ */
.preview-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #000;
}

.preview-video-element {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.preview-actions {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 10px;
    z-index: 5;
}

.btn-remove-v, .btn-edit-v {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.btn-remove-v { background: #ff4444; color: #fff; }
.btn-edit-v { background: #21262d; border: 1px solid #30363d; color: #c9d1d9; display: inline-block; text-align: center; }
.btn-remove-v:hover, .btn-edit-v:hover { opacity: 0.9; }

/* 8. ТӨМЕНГІ БЕКІТУ БАТЫРМАСЫ (FOOTER & SEND BUTTON) */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid #30363d;
    background: #161b22;
    margin-top: auto; /* Фурнитураны әрқашан ең астында ұстау */
}

.btn-send-modern {
    width: 100%;
    padding: 12px;
    background: #238636; /* GitHub Жасыл Жариялау батырмасы */
    border: 1px solid #2ea44f;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-send-modern:hover:not(:disabled) {
    background: #2ea44f;
}

.btn-send-modern:disabled {
    background: #21262d;
    border-color: #30363d;
    color: #8b949e;
    cursor: not-allowed;
}