/* assets/css/style.css - Formatted for Readability */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.container {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px; /* Genişlik ayarlandı */
    text-align: center;
}

h1, h2 {
    color: #1c1e21;
    margin-top: 0;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #606770;
    font-weight: 600;
}

label.required::after {
    content: ' *';
    color: #d9534f;
}

input[type="text"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

#status,
#publish-status {
    margin-top: 1.5rem;
    font-weight: bold;
    min-height: 20px;
}

#post-status {
    margin-top: 1.5rem;
    text-align: left;
    min-height: 20px;
    line-height: 1.6;
}

.error {
    color: #d9534f;
}

.success {
    color: #5cb85c;
}

#uppy-drag-drop-area .uppy-Dashboard-inner {
    border: 2px dashed #dddfe2;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 1rem;
    border: 2px solid;
    background-color: transparent;
}

.btn-primary {
    border-color: #4A90E2;
    color: #4A90E2;
}

.btn-primary:not(:disabled):hover {
    background-color: #4A90E2;
    color: white;
}

.btn-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-secondary:not(:disabled):hover {
    background-color: #6c757d;
    color: white;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    border-color: #ccc;
    color: #ccc;
    background-color: #f8f8f8;
    cursor: not-allowed;
}

.panel-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-block {
    border: 1px solid;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.status-block h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-block p {
    margin: 0;
    line-height: 1.5;
}

.status-block ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.status-block li {
    display: flex;
    align-items: center;
    padding: 0.4rem 0;
}

.status-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.status-success {
    background-color: #e7f5ff;
    border-color: #b3d9ff;
    color: #004085;
}

.icon-success {
    color: #28a745;
}

.status-error {
    background-color: #fdecea;
    border-color: #f5c6cb;
    color: #721c24;
}

.status-error h4 {
    text-transform: uppercase;
}

.icon-error {
    color: #dc3545;
}

.platform-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper .checkbox-label {
    display: flex;
    align-items: center;
}

.checkbox-wrapper .checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #dddfe2;
    border-radius: 4px;
    margin-right: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-wrapper .checkbox-label-text {
    font-weight: 500;
    color: #333;
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkbox-label .checkbox-custom {
    background-color: #4A90E2;
    border-color: #4A90E2;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.select-all-wrapper {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.select-all-wrapper .checkbox-label-text {
    font-weight: 700;
}

#platform-selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 0.5rem;
}


/* LİSTE GÖRÜNÜMÜ STİLLERİ */
#approval-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.post-list-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    position: relative;
    gap: 1rem;
    cursor: pointer;
}

.post-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.post-list-item-main {
    display: flex;
    align-items: center;
    flex-grow: 1;
    text-decoration: none;
}

.post-list-item-visual {
    width: 100px;
    height: 100px;
    margin-right: 1.5rem;
    border-radius: 6px;
    object-fit: cover;
    background-color: #f0f2f5;
    flex-shrink: 0;
}

.post-list-item-content {
    flex-grow: 1;
}

.post-list-item-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #606770;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.post-list-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1c1e21;
    margin: 0;
    line-height: 1.4;
}

.loading-text,
.empty-text {
    text-align: center;
    color: #606770;
    padding: 3rem 0;
    font-size: 1.1rem;
}

.post-list-item-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 12px;
    text-transform: uppercase;
}

.post-list-item-status-badge.cancelled {
    background-color: #e74c3c; /* Kırmızı bir ton */
    color: white;
}

/* İŞLENMİŞ GÖNDERİ STİLLERİ */
.post-list-item.is-decided {
    opacity: 0.7;
    background-color: #f8f9fa;
}


/* TOPLU İŞLEM STİLLERİ */
.bulk-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dddfe2;
    border-radius: 8px;
    margin-top: 2rem;
}

.bulk-actions-bar .btn-primary {
    width: auto;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    margin: 0;
}

.post-list-item .checkbox-wrapper {
    flex-shrink: 0;
}


/* MODAL STİLLERİ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    text-align: left;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.modal-close-btn {
    background: rgba(0, 0, 0, 0.4);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.modal-body {
    overflow-y: auto;
    padding: 0;
}

.modal-visual-container {
    width: 100%;
    height: auto;
    min-height: 300px;
    background-color: #f0f2f5;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-visual-container img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.modal-text-content {
    padding: 1.5rem 2rem 2rem 2rem;
}

.modal-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
}


/* AKORDİYON & ONAY BUTONLARI */
.accordion-item {
    border-top: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    background: #fff;
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1c1e21;
}

.accordion-header::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

.content-section {
    margin-bottom: 1rem;
}

.content-section h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.8rem;
    color: #606770;
    text-transform: uppercase;
}

.content-text,
.content-hashtags {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 0.95rem;
}

.content-hashtags {
    color: #4A90E2;
    word-break: break-word;
}

.approval-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-decision {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    font-size: 0.9rem;
    border-width: 2px;
}

.btn-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.btn-approve {
    border-color: #28a745;
    color: #28a745;
}

.btn-approve:not(:disabled):hover {
    background-color: #28a745;
    color: white;
}

.btn-reject {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-reject:not(:disabled):hover {
    background-color: #dc3545;
    color: white;
}

.btn-decision.approved {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-decision.rejected {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-decision:disabled {
    border-color: #ccc !important;
    color: #999 !important;
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    background-color: #f8f9fa;
}

.modal-footer .btn-primary,
.modal-footer .btn-secondary {
    width: auto;
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
    margin-top: 0;
}

.modal-status-text {
    margin-right: auto;
    font-weight: 600;
    font-size: 0.9rem;
}

.modal-status-text.error {
    color: #dc3545;
}

.modal-status-text.success {
    color: #28a745;
}


/* YAYINLAMA YÜKLENME ANİMASYONU */
.status-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background-color: #e7f5ff;
    border: 1px solid #b3d9ff;
    color: #004085;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 4px solid rgba(0, 64, 133, 0.2);
    border-left-color: #004085;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* assets/css/style.css dosyasının sonuna eklenecek */

.media-info-box {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #606770;
    text-align: left;
    line-height: 1.5;
}

.media-info-box strong {
    color: #1c1e21;
}

/* assets/css/style.css dosyasının sonuna eklenecek */

.thumbnails-container {
    display: grid; /* Flex yerine Grid kullanarak daha kontrollü bir yapı */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Her satırda esnek sayıda thumbnail */
    gap: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.thumbnail-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 kare oranını korumak için */
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: border-color 0.2s ease;
    background-color: #e9ecef;
}

.thumbnail-item.is-main {
    border-width: 4px; /* Kenarlığı daha kalın yap */
    border-color: #4A90E2; /* Ana görseli vurgulamak için */
}

.thumbnail-item img,
.thumbnail-item .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item .video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #606770;
}

.thumbnail-item .video-placeholder svg {
    width: 40%;
    height: 40%;
}

/* Logo Stilleri */
.header-logo {
  display: block; /* Ortalamak için block element yapıyoruz */
  width: 250px; /* İstediğiniz genişlik */
  max-width: 80%; /* Mobil cihazlarda taşmayı önler */
  height: auto; /* Genişliğe göre yüksekliği otomatik ayarlar */
  margin: 0 auto 25px; /* Üst/alt: 0, sağ/sol: auto (ortalar), alt boşluk: 25px */
}

/* ============================================= */
/* YENİ EKLENEN ONBOARDING FORMU STİLLERİ       */
/* ============================================= */

/* Form bölümlerini kart gibi göstermek için */
.form-section {
    border: 1px solid #dddfe2;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    text-align: left;
}

/* Form bölüm başlıkları (h3) için stil */
.form-section h3 {
    font-size: 1.5rem;
    color: #1c1e21;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Form bölüm açıklamaları için stil */
.section-description {
    color: #606770;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Tüm input, textarea ve select kutularını aynı yapmak için */
input[type="text"],
input[type="password"],
input[type="url"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1rem;
    margin-top: 0.25rem; /* Etiketle arasında küçük bir boşluk */
}

/* Inputların altındaki yardımcı metinleri biçimlendirmek için */
.helper-text {
    font-size: 0.9rem;
    color: #606770;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.helper-text i {
    color: #8a919c;
}

/* Brand Voice radyo butonları için özel stil */
.radio-option {
    margin-bottom: 1.25rem;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    vertical-align: middle;
}

.radio-option label {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 0.25rem;
}

.radio-description {
    font-size: 0.9rem;
    color: #606770;
    margin-top: 0.25rem;
    margin-left: 27px; /* Radyo butonu ile hizalamak için */
    line-height: 1.4;
}

/* Logout butonunu sağa yaslamak için */
#onboarding-section .panel-buttons,
#pending-activation-section .panel-buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

/* =================================================== */
/* FAZ 2 - PROFİL DÜZENLEME BUTON STİLLERİ            */
/* =================================================== */

/* Turuncu vurgu butonu */
.btn-highlight {
    border-color: #FF6F00; /* Turuncu kenarlık */
    color: #FF6F00;       /* Turuncu yazı */
    background-color: transparent;
}

.btn-highlight:hover {
    background-color: #FF6F00; /* Üzerine gelince turuncu dolgu */
    color: #fff;               /* Üzerine gelince beyaz yazı */
}

/* Buton gruplarını ayırmak için */
.panel-buttons #edit-profile-btn {
    margin-top: 15px; /* Üstündeki butondan boşluk bırak */
}

#onboarding-section .panel-buttons button,
#pending-activation-section .panel-buttons button {
    width: auto; /* Tam genişlik olmasın */
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* =================================================== */
/* FAZ 2 - INLINE PROFILE EDITING STYLES               */
/* =================================================== */

#profile-view-container {
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* Kenarlıkların yuvarlak kalmasını sağlar */
}

.profile-field {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.profile-field:last-child {
    border-bottom: none;
}

.profile-field:hover {
    background-color: #f9f9f9;
}

.profile-field .field-label {
    font-weight: 600;
    color: #333;
    width: 200px; /* Etiketlerin aynı hizada durmasını sağlar */
    flex-shrink: 0; /* Küçülmesini engeller */
}

.profile-field .value-container {
    flex-grow: 1; /* Kalan tüm alanı kaplar */
    margin: 0 1rem;
}

.profile-field .field-value {
    color: #555;
    white-space: pre-wrap; /* Uzun metinlerin doğru görüntülenmesi için */
    word-break: break-word;
}

.profile-field .field-input,
.profile-field .field-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.profile-field .field-textarea {
    min-height: 100px;
    resize: vertical;
}

.profile-field .radio-group label,
.profile-field .checkbox-group label {
    margin-right: 1rem;
    font-weight: normal;
}

.profile-field .action-container {
    width: 100px; /* Butonların aynı hizada durmasını sağlar */
    text-align: right;
}

.profile-field .edit-toggle-btn.save-mode {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

#profile-actions-container {
    margin-top: 1.5rem;
    text-align: right;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
