/* Zengin Metin Editörü Stilleri */
.tox-tinymce {
    border-radius: 0.5rem !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.tox .tox-toolbar {
    background: none !important;
}

.tox .tox-tbtn {
    border-radius: 0.375rem !important;
    transition: all 0.2s !important;
}

.tox .tox-tbtn:hover {
    background: #f3f4f6 !important;
}

.tox .tox-tbtn--enabled {
    background: #e5e7eb !important;
}

/* Feed Kartları */
.feed-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feed-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Quote Card */
.quote-card {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    position: relative;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: #9ca3af;
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* Book Preview Card */
.book-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.book-cover {
    width: 80px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn i {
    transition: transform 0.2s;
}

.action-btn:hover i {
    transform: scale(1.1);
}

/* Like Button */
.like-btn.active {
    color: #ef4444;
}

.like-btn.active i {
    transform: scale(1.2);
}

/* Post Content (Quill çıktısı) */
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}


.post-content blockquote,
.post-content .vb-quote,
.prose blockquote,
.prose .vb-quote {
    border-left: 4px solid #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 0.75rem !important;
    font-style: italic;
    margin: 1.25rem 0 !important;
}

.post-content blockquote p,
.post-content .vb-quote p,
.prose blockquote p,
.prose .vb-quote p {
    margin: 0;
}

.post-content .vb-font-sm,
.prose .vb-font-sm {
    font-size: 0.95rem;
}

.post-content .vb-font-lg,
.prose .vb-font-lg {
    font-size: 1.15rem;
}

.post-content .vb-font-xl,
.prose .vb-font-xl {
    font-size: 1.3rem;
}


.post-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.95rem;
    margin: 1.25rem 0;
}

.post-content code {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    font-size: 0.95em;
}

.post-content pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.85rem;
    margin: 1.25rem auto;
    display: block;
    box-shadow: 0 20px 25px -15px rgba(15, 23, 42, 0.4);
}

.post-content figure {
    margin: 1.25rem 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1rem 1.5rem;
    padding-left: 0.75rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.post-content .ql-align-center {
    text-align: center;
}

.post-content .ql-align-right {
    text-align: right;
}

.post-content .ql-align-justify {
    text-align: justify;
}

.post-content .ql-indent-1 { margin-left: 1.5rem; }
.post-content .ql-indent-2 { margin-left: 3rem; }
.post-content .ql-indent-3 { margin-left: 4.5rem; }
.post-content .ql-indent-4 { margin-left: 6rem; }
.post-content .ql-indent-5 { margin-left: 7.5rem; }
.post-content .ql-indent-6 { margin-left: 9rem; }
.post-content .ql-indent-7 { margin-left: 10.5rem; }
.post-content .ql-indent-8 { margin-left: 12rem; }

.post-content [style*="background"] {
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.post-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

/* Comment Section */
.comment-section {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding-top: 1rem;
}

.comment-form textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem;
    resize: none;
    transition: all 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        width: 280px;
        background: white;
        z-index: 40;
        padding: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 35;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}