/* Karakter Gelişimi Özel Stilleri */

.page-header {
    padding-top: 150px;
    padding-bottom: 30px;
    text-align: center;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(212, 168, 83, 0.3);
}

.page-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.cd-section {
    padding-top: 40px;
    padding-bottom: 100px;
    min-height: 60vh;
}

.container {
    max-width: 1400px !important;
}

.cd-interface {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.user-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 16, 13, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.2);
    padding: 15px 25px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    color: #e8e6e3;
}

.user-welcome strong {
    color: var(--gold);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.staff-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.staff-badge.hidden {
    display: none !important;
}

.cd-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .cd-grid {
        grid-template-columns: 1fr;
    }
}

.cd-form-container {
    background: rgba(20, 16, 13, 0.6);
    border: 1px solid rgba(212, 168, 83, 0.15);
    padding: 30px;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.section-subtitle {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 1px solid rgba(212, 168, 83, 0.2);
    padding-bottom: 10px;
}

.cd-entries-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.entries-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-entry {
    background: rgba(20, 16, 13, 0.8);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.cd-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 168, 83, 0.4);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.entry-character {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: #fff;
    margin: 0;
    font-weight: 600;
}

.entry-author {
    font-size: 13px;
    color: #a09d98;
    margin-top: 4px;
}

.entry-date {
    font-size: 12px;
    color: var(--gold);
    background: rgba(212, 168, 83, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

.entry-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.entry-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.entry-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.entry-images-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212, 168, 83, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: zoom-in;
}

.entry-images-grid img:hover {
    transform: scale(1.02);
    border-color: rgba(212, 168, 83, 0.5);
}

.entry-content {
    color: #e8e6e3;
    line-height: 1.7;
    font-size: 15px;
    white-space: pre-wrap;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 168, 83, 0.2);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
    margin: 40px auto;
}

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

.discord-hidden {
    display: none !important;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a09d98;
    background: rgba(20, 16, 13, 0.4);
    border-radius: 8px;
    border: 1px dashed rgba(212, 168, 83, 0.3);
}

.empty-state svg {
    margin-bottom: 15px;
    color: rgba(212, 168, 83, 0.5);
}

.hidden {
    display: none !important;
}

#developmentContent {
    min-height: 220px;
    resize: vertical;
}

#characterSearch:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 8px rgba(212, 168, 83, 0.3);
}

.image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(212, 168, 83, 0.4);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(212, 168, 83, 0.5);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.preview-remove:hover {
    background: #e74c3c;
    border-color: #c0392b;
}

/* Lightbox Modal (Görsel Önizleme) */
.lightbox-modal {
    position: fixed;
    z-index: 99999;
    padding: 30px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 8, 6, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.3);
    animation: lightboxZoom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #e8e0d4;
    font-size: 50px;
    font-weight: 300;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
}
