/* 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 {
    position: relative;
    padding: 1.75rem 2.25rem 1.75rem 2.65rem;
    border-radius: 1.5rem;
    border: 1px solid #e6e9ef;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #16a34a 0%, #22c55e 100%);
}

.quote-card__icon {
    display: none;
}

.quote-card__text {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.9;
    font-style: italic;
    color: #1f2a3c;
    font-weight: 400;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: left;
}

.quote-card__meta {
    margin-top: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #047857;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quote-card__meta i {
    color: #0f9f71;
}

@media (max-width: 640px) {
        .quote-card {
            padding: 1.4rem 1.55rem 1.4rem 2.2rem;
        }

        .quote-card::before {
            left: 0;
            top: 0.75rem;
            bottom: 0.75rem;
        }

        .quote-card__text {
            font-size: 0.98rem;
        }
}

/* 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);
}

.book-cover-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.book-cover-frame > img,
.book-cover-frame .book-cover-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-cover-frame.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #ecfeff);
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
}

.book-cover-placeholder-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c7d2fe;
    color: #312e81;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.book-cover-placeholder-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.2;
    max-width: 12ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.book-card {
    display: flex;
    height: 100%;
}

.book-card > .grid {
    flex: 1;
    min-height: 100%;
}

.book-card-content {
    min-height: 100%;
}

.book-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@supports not (aspect-ratio: 2 / 3) {
    .book-cover-frame::before {
        content: "";
        display: block;
        padding-top: 150%;
    }

    .book-cover-frame > img,
    .book-cover-frame .book-cover-media,
    .book-cover-frame > .book-cover-content {
        position: absolute;
        inset: 0;
    }
}

.layout-shell {
    width: 100%;
}

.book-rating-control {
    display: inline-flex;
    gap: 0.15rem;
    align-items: center;
}

.book-rating-control button {
    width: 1.8rem;
    height: 1.8rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #d1d5db;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* Messaging UI Enhancements */
.compose-submit-btn {
    margin: 0.5rem 0 0.25rem;
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #a855f7 100%);
    border: 1px solid rgba(76, 29, 149, 0.55);
    box-shadow: 0 20px 35px -18px rgba(76, 29, 149, 0.85);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 1.05rem;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.compose-panel {
    padding-bottom: 3.5rem !important;
    margin-bottom: 1rem;
    overflow: visible;
}

.compose-panel form {
    overflow: visible;
}

.compose-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 25px 40px -20px rgba(64, 18, 125, 0.85);
}

.compose-submit-btn:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.45);
    outline-offset: 3px;
}

.header-message-link {
    position: relative;
}

.header-message-link .message-indicator-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.1rem;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.2rem;
    border-radius: 9999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(220, 38, 38, 0.65);
    animation: message-indicator-pulse 1.6s ease-in-out infinite;
}

.header-message-link.has-unread-messages i {
    color: #b91c1c;
    animation: message-icon-pulse 1.6s ease-in-out infinite;
}

@keyframes message-indicator-pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(220, 38, 38, 0.3); }
    50% { transform: scale(1); box-shadow: 0 0 0 2px #fff, 0 0 18px rgba(220, 38, 38, 0.7); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 2px #fff, 0 0 6px rgba(220, 38, 38, 0.3); }
}

@keyframes message-icon-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-1px); }
    100% { transform: translateY(0); }
}

.book-rating-control button:hover {
    color: #fcd34d;
    transform: translateY(-1px);
}

.book-rating-control button.is-hover {
    color: #fde68a;
}

.book-rating-control button.is-active {
    color: #fbbf24;
}

.book-rating-control.is-locked button {
    pointer-events: none;
    cursor: default;
    opacity: 0.8;
    transform: none !important;
}

[data-book-rating-root].is-locked button {
    pointer-events: none;
    cursor: default;
    opacity: 0.85;
}

.sort-pill {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.sort-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    margin: 0;
}

.sort-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sort-pill:hover span {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.sort-pill input[type="radio"]:checked + span {
    background: #ffffff;
    color: #4c1d95;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.sort-pill input[type="radio"]:focus-visible + span {
    outline: 2px solid #c4b5fd;
    outline-offset: 2px;
}

.book-rating-control button:focus-visible {
    outline: 2px solid rgba(79, 70, 229, 0.35);
    outline-offset: 2px;
}

.book-rating-control.is-loading button {
    opacity: 0.5;
    pointer-events: none;
}

/* 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);
}

/* Devamını Oku Butonları */

.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    line-height: 1.25;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-readmore:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(79, 70, 229, 0.3);
}

.btn-readmore--purple {
    background: linear-gradient(120deg, #b26bff, #7c3aed);
}

.btn-readmore--purple:hover {
    background: linear-gradient(120deg, #a256ff, #6d28d9);
}

.btn-readmore--blue {
    background: linear-gradient(120deg, #5ba8ff, #2563eb);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.btn-readmore--blue:hover {
    background: linear-gradient(120deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.3);
}

.btn-readmore--orange {
    background: linear-gradient(120deg, #f97316, #fb923c);
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.25);
}

.btn-readmore--orange:hover {
    background: linear-gradient(120deg, #fb923c, #f97316);
    box-shadow: 0 10px 18px rgba(249, 115, 22, 0.3);
}

.btn-readmore-icon,
.btn-readmore-arrow {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.btn-readmore-icon i,
.btn-readmore-arrow i {
    font-size: 0.8rem;
}

.btn-readmore .btn-text-more,
.btn-readmore .btn-text-less {
    display: inline-flex;
    align-items: center;
}

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

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

/* Post Content (Quill çıktısı) */
.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}
.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;
}

.line-excerpt {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.line-excerpt br {
    content: '';
}

.line-excerpt .excerpt-dots {
    margin-left: 4px;
}


.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;
}

/* Profile hero base hooks */
.profile-hero {
    position: relative;
}

.profile-hero-cover {
    display: none;
}

.profile-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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);
}
.vb-editor-area img:focus { outline: none; }
.vb-editor-area img::selection,
.vb-editor-area figure::selection,
.ql-editor img::selection,
.ql-editor figure::selection {
    background: rgba(255, 196, 38, 0.35);
}

.vb-editor-area img::-moz-selection,
.vb-editor-area figure::-moz-selection,
.ql-editor img::-moz-selection,
.ql-editor figure::-moz-selection {
    background: rgba(255, 196, 38, 0.35);
}

.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;
    }
}