/* =====================================================
   Grandhashala Quote Rotator — Frontend Styles
   ===================================================== */

.gh-quote-empty {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 8px;
    color: #555;
    font-family: sans-serif;
    line-height: 1.6;
}

/* ── Wrapper ── */
.gh-quote-rotator {
    position: relative;
    width: 100%;
    padding: 40px 24px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

/* ── Slides ── */
.gh-quote-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    padding: 40px 24px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Active slide is relative so wrapper gets height */
.gh-quote-slide.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Blockquote ── */
.gh-quote-slide blockquote {
    font-size: 1.2rem;
    line-height: 1.85;
    margin: 0 0 16px;
    padding: 0;
    border: none !important;
    border-left: none !important;
    background: none !important;
    color: inherit;
    font-style: italic;
    font-family: "Manjari", "Rachana", "Noto Sans Malayalam", system-ui, sans-serif;
}

.gh-quote-slide blockquote::before {
    content: '\201C';
    font-size: 3rem;
    line-height: 0.6;
    vertical-align: -0.5rem;
    color: currentColor;
    opacity: 0.18;
    margin-right: 4px;
    font-family: Georgia, serif;
}

/* ── Author ── */
.gh-quote-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.gh-author-img {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(0,0,0,0.10) !important;
    flex-shrink: 0;
}

.gh-quote-author cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.92rem;
    opacity: 0.75;
    font-family: "Manjari", "Rachana", "Noto Sans Malayalam", sans-serif;
}

/* ── Styles ── */
.gh-style-card {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07) !important;
}

.gh-style-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    border-radius: 16px !important;
}
.gh-style-gradient .gh-quote-author cite { color: rgba(255,255,255,0.85); }
.gh-style-gradient blockquote           { color: #fff; }
.gh-style-gradient blockquote::before   { color: #fff; }

/* ── Blocksy: override blockquote left border ── */
.entry-content .gh-quote-slide blockquote,
.post-content  .gh-quote-slide blockquote,
.ct-main-content .gh-quote-slide blockquote {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    background: none !important;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .gh-quote-rotator  { padding: 28px 16px; }
    .gh-quote-slide    { padding: 28px 16px; }
    .gh-quote-slide blockquote { font-size: 1.05rem; }
    .gh-author-img     { width: 38px !important; height: 38px !important; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .gh-quote-slide { transition: none !important; transform: none !important; }
}
