/* Text Processor CSS - BBCode Stilleri */

/* Spoiler */
.spoiler {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spoiler:hover {
    background: var(--bg-hover);
}

.spoiler-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 8px;
}

.spoiler-content {
    display: none;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
}

.spoiler.revealed .spoiler-content {
    display: block;
}

.spoiler.revealed .spoiler-label {
    color: var(--primary-color);
}

/* Entry Görselleri */
.entry-image-container {
    margin: 15px 0;
    text-align: center;
}

.entry-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.entry-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Bkz Linkleri */
.bkz-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(1, 108, 164, 0.05);
    transition: all 0.2s ease;
}

.bkz-link:hover {
    background: rgba(1, 108, 164, 0.1);
    color: var(--primary-hover);
}

.bkz-link.bkz-new {
    color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.bkz-link.bkz-new:hover {
    background: rgba(40, 167, 69, 0.1);
}

/* Kod Blokları */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 15px 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.code-block code {
    color: inherit;
    background: none;
    padding: 0;
    font-size: inherit;
}

/* Alıntı */
.entry-quote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    margin: 15px 0;
    background: var(--bg-gray);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-gray);
}

.entry-quote i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 16px;
}

/* Auto Link */
.auto-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auto-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.auto-link i {
    font-size: 12px;
}

/* Mention */
.mention {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(124, 58, 237, 0.05);
    transition: all 0.2s ease;
}

.mention:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

/* Hashtag */
.hashtag {
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(1, 108, 164, 0.05);
    transition: all 0.2s ease;
}

.hashtag:hover {
    background: rgba(1, 108, 164, 0.1);
    opacity: 0.8;
}

/* Temel Metin Formatları */
.entry-content strong,
.entry-text strong {
    font-weight: 700;
    color: var(--text-dark);
}

.entry-content em,
.entry-text em {
    font-style: italic;
}

.entry-content u,
.entry-text u {
    text-decoration: underline;
}

.entry-content del,
.entry-text del {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .entry-image {
        max-width: 100%;
        border-radius: 6px;
    }
    
    .code-block {
        font-size: 12px;
        padding: 12px;
    }
    
    .video-container {
        border-radius: 6px;
    }
    
    .spoiler {
        padding: 10px;
    }
}
