﻿.hero-gradient {
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 50%, #374151 100%);
}

.nav-gradient {
    background: linear-gradient(90deg, #495057 0%, #5a6268 50%, #6c757d 100%);
}

/* ── Mobile Accordion ── */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open {
    max-height: 2000px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Desktop Dropdown Panel ── */
.dropdown-panel {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.07),
        0 10px 20px -2px rgba(0, 0, 0, 0.06),
        0 20px 40px -4px rgba(0, 0, 0, 0.04);
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.topic-badge {
    transition: all 0.2s ease;
}

.topic-badge:hover {
    transform: scale(1.05);
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-container {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.active-prayer {
    background: rgba(132, 117, 78, 0.15);
    border-color: #84754E;
}

.faq-ticker {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#faqContainer:hover .faq-ticker {
    animation-play-state: paused !important;
}

#faqContainer {
    scrollbar-width: thin;
    scrollbar-color: #b8bfc7 #f3f4f6;
}

#faqContainer::-webkit-scrollbar {
    width: 8px;
}

#faqContainer::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 9999px;
}

#faqContainer::-webkit-scrollbar-thumb {
    background: #b8bfc7;
    border-radius: 9999px;
}

#faqContainer::-webkit-scrollbar-thumb:hover {
    background: #9aa3ad;
}

.content-pattern {
    background-image: linear-gradient(rgba(248, 246, 241, 0.72), rgba(248, 246, 241, 0.72)), url('/images/islamic_pattern.svg');
    background-repeat: repeat;
    background-size: 96px auto;
    background-position: top center;
    flex-grow: 1;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

/* hb-breadcrumb stilleri Tailwind'e taşındı — Breadcrumb.razor */

/* ContentPage HTML (rendered via MarkupString) */
.content-body {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: #374151;
    --content-font-base: 0.9rem;
    --reader-font-step: 0;
    --reader-line-height: 1.75;
    font-size: calc(var(--content-font-base) + (var(--reader-font-step) * 0.1rem));
    line-height: var(--reader-line-height);
}

.content-body > *:first-child {
    margin-top: 0;
}

.content-body > *:last-child {
    margin-bottom: 0;
}

.content-body p {
    margin: 0 0 1rem;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}

.content-body h1 { font-size: 1.75rem; }
.content-body h2 { font-size: 1.5rem; }
.content-body h3 { font-size: 1.25rem; }
.content-body h4 { font-size: 1.1rem; }
.content-body h5 { font-size: 1rem; }
.content-body h6 { font-size: 0.9rem; }

.content-body ul,
.content-body ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
    margin: 0.35rem 0;
    display: list-item;
}

.content-body blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid #d1d5db;
    color: #374151;
    background-color: #f9fafb;
}

.content-body hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
}

.content-body a {
    color: #0f766e;
    text-decoration: underline;
}

.content-body img,
.content-body video,
.content-body iframe,
.content-body table {
    max-width: 100%;
}

.content-body img {
    height: auto;
}

.content-body table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    width: 100%;
    white-space: normal;
    margin: 1rem 0;
}

.content-body th,
.content-body td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
}

.content-body th {
    background: #f9fafb;
    font-weight: 600;
}

.content-body pre {
    overflow-x: auto;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #111827;
    color: #f9fafb;
}

.content-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.content-body .ql-align-center {
    text-align: center !important;
}

.content-body .ql-align-right {
    text-align: right !important;
}

.content-body .ql-align-justify {
    text-align: justify !important;
    text-justify: inter-word;
}

.content-body .ql-indent-1 { padding-left: 1.5rem; }
.content-body .ql-indent-2 { padding-left: 3rem; }
.content-body .ql-indent-3 { padding-left: 4.5rem; }
.content-body .ql-indent-4 { padding-left: 6rem; }

.content-body li.ql-indent-1 { margin-left: 1.5rem; }
.content-body li.ql-indent-2 { margin-left: 3rem; }
.content-body li.ql-indent-3 { margin-left: 4.5rem; }
.content-body li.ql-indent-4 { margin-left: 6rem; }

@media (max-width: 768px) {
    .content-body {
        --content-font-base: 0.825rem !important;
        --reader-line-height: 1.65 !important;
    }

    .content-body h1 { font-size: 1.5rem; }
    .content-body h2 { font-size: 1.3rem; }
    .content-body h3 { font-size: 1.1rem; }
}

.reader-toolbar {
    position: sticky;
    top: 72px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

.reader-toolbar-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reader-toolbar-group {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.reader-btn {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0.55rem;
    padding: 0.45rem 0.65rem;
    line-height: 1;
    transition: all 0.18s ease;
}

.reader-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.reader-btn:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .reader-toolbar {
        top: 56px;
        flex-direction: column;
        align-items: flex-start;
    }
}

.ann-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .ann-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ann-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ann-card {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ann-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.11);
}

.ann-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.ann-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f3f4f6;
}

.ann-card-body {
    padding: 1rem;
}

.ann-card-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.ann-card-title {
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem;
}

.ann-card-summary {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 0.9rem;
}

.ann-card-cta {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f766e;
}

.ann-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.3rem;
}

.ann-btn {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    padding: 0.5rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    border-radius: 0.6rem;
    text-decoration: none;
    transition: all 0.18s ease;
}

.ann-btn:hover:not(:disabled) {
    border-color: #9ca3af;
    background: #f9fafb;
}

.ann-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ann-page-info {
    font-size: 0.86rem;
    color: #4b5563;
    font-weight: 600;
}

/* View toggle buttons */
.ann-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f3f4f6;
    border-radius: 0.6rem;
    padding: 0.2rem;
}

.ann-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.4rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ann-view-btn:hover {
    color: #374151;
    background: #e5e7eb;
}

.ann-view-btn.active {
    background: #fff;
    color: #84754E;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.10);
}

/* List view layout */
.ann-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ann-list-item {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
    display: flex;
    align-items: stretch;
}

.ann-list-item:hover {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.09);
}

.ann-list-item-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.ann-list-item-image {
    width: 120px;
    min-width: 120px;
    height: 100px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .ann-list-item-image {
        width: 160px;
        min-width: 160px;
        height: auto;
    }
}

.ann-list-item-body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.ann-list-item-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #9ca3af;
}

.ann-list-item-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ann-list-item-summary {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ann-list-item-cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #84754E;
    margin-top: 0.1rem;
}

/* Autocomplete / Öneri Dropdown */
.ann-suggest-wrapper {
    position: relative;
}

.ann-suggest-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.6rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    z-index: 50;
    overflow: hidden;
}

.ann-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.12s ease;
    border-bottom: 1px solid #f3f4f6;
}

.ann-suggest-item:last-child {
    border-bottom: none;
}

.ann-suggest-item:hover {
    background: #f8f6f1;
    color: #84754E;
}

.ann-suggest-item strong {
    color: #84754E;
    font-weight: 700;
}

.ann-suggest-icon {
    flex-shrink: 0;
    color: #9ca3af;
}

.ann-detail-image {
    width: 100%;
    max-height: 380px;
    border-radius: 0.9rem;
    border: 1px solid #eef1f4;
    object-fit: cover;
    background: #f3f4f6;
}

.ann-detail-gallery {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 700px) {
    .ann-detail-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ann-detail-gallery-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.7rem;
    border: 1px solid #eceff3;
}

.ann-detail-gallery-item {
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 0.7rem;
    overflow: hidden;
    cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ann-detail-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.ann-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(7, 11, 19, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ann-lightbox-image {
    max-width: min(1100px, 92vw);
    max-height: 88vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.ann-lightbox-close,
.ann-lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ann-lightbox-close:hover,
.ann-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.04);
}

.ann-lightbox-close {
    top: 1rem;
    right: 1rem;
}

.ann-lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.ann-lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .ann-lightbox {
        padding: 1rem;
    }
}

/* ── Share Bar ─────────────────────────────────────────────── */
.share-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.share-btn:active {
    transform: translateY(0);
}

.share-btn-whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn-twitter {
    background: #000;
    color: #fff;
}

.share-btn-facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn-copy {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}

.share-btn-copy.copied {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}
