/* --- BRAND VARIABLES (TEAL & ORANGE) --- */
:root {
    --ss-brand: #1F8A8A;       /* Teal - Ana Renk */
    --ss-brand-dark: #146B6B;  /* Teal Dark - Hover */
    --ss-cta: #F37021;         /* Orange - Vurgu/Uyarı */
    --ss-text: #111827;
    --ss-border: #E5E7EB;
    --ss-radius: 16px;
}

/* Modal Genel Yapısı */
#story-submit-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: #fff;
    overflow: hidden;
}

/* HEADER - Görseldeki pembeliği kaldırıp temiz beyaz yapıyoruz */
#story-submit-modal .modal-header {
    background: #fff; 
    border-bottom: 1px solid var(--ss-border);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#story-submit-modal .modal-title {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ss-text);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* İkon Rengi - Kırmızı yerine Teal */
#story-submit-modal .modal-title i {
    color: var(--ss-brand);
    font-size: 20px;
    background: rgba(31, 138, 138, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Kapatma Butonu */
.btn-close-story-modal {
    background: #f3f4f6;
    border: none;
    color: #6b7280;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.btn-close-story-modal:hover { background: #e5e7eb; color: #111; }

/* BODY */
#story-submit-modal .modal-body {
    padding: 32px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Form Elemanları */
.story-form-group { margin-bottom: 24px; }

.story-form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
    margin-bottom: 8px;
}
.story-form-group label .required { color: var(--ss-cta); margin-left: 3px; }

.story-form-group input[type="text"],
.story-form-group input[type="email"],
.story-form-group select,
.story-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s;
    background: #f9fafb;
    color: var(--ss-text);
}

.story-form-group input:focus, 
.story-form-group select:focus, 
.story-form-group textarea:focus {
    outline: none;
    border-color: var(--ss-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31, 138, 138, 0.1);
}

/* Quote Alanı - Özel Tasarım */
#story_quote {
    background: #fffcf5; /* Hafif sarımtırak not kağıdı */
    border-color: #fed7aa;
}
#story_quote:focus {
    border-color: var(--ss-cta); /* Turuncu odak */
    box-shadow: 0 0 0 4px rgba(243, 112, 33, 0.1);
}

/* FOOTER & BUTTONS */
#story-submit-modal .modal-footer {
    border-top: 1px solid var(--ss-border);
    padding: 20px 32px;
    background: #f9fafb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-cancel-story {
    background: #fff;
    border: 1px solid var(--ss-border);
    color: #374151;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.btn-cancel-story:hover { background: #f3f4f6; color: #111; }

.btn-submit-story {
    background: var(--ss-brand); /* Kırmızı değil Teal */
    color: #fff;
    border: none;
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 138, 138, 0.3);
    transition: 0.3s;
}
.btn-submit-story:hover {
    background: var(--ss-brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 138, 138, 0.4);
}

/* --- MEVCUT STİLLERİ KORU, BUNLARI EKLE --- */

/* SEARCH & SELECT COMPONENT */
.search-select-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius);
    font-size: 14px;
    background: #f9fafb;
    transition: 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--ss-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 138, 138, 0.1);
}

/* Dropdown Results */
/* Dropdown Results */
.search-dropdown {
    position: absolute;
    top: 100%; 
    left: 0; 
    width: 100%;
    background: #fff;
    border: 1px solid var(--ss-brand); /* Marka rengi sınır */
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000 !important; /* FIX: Modalın üstüne çıkması için çok yüksek değer */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 5px;
}

.search-result-item {
    padding: 10px 15px;
    font-size: 14px;
    color: var(--ss-text);
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: #f0fdfd; color: var(--ss-brand); }

/* Selected Tags (Pills) */
.selected-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.selected-pill {
    background: #f0fdfd;
    color: var(--ss-brand-dark);
    border: 1px solid rgba(31, 138, 138, 0.2);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-pill {
    cursor: pointer;
    color: var(--ss-cta);
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
}
.remove-pill:hover { color: #d04e0b; }