/* =============================================
   Ayonimyte Testimonials & Quotes — Styles
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
    --az-dark-bg:      #0D1B3E;
    --az-dark-card:    rgba(255,255,255,0.06);
    --az-dark-text:    #FFFFFF;
    --az-dark-muted:   rgba(255,255,255,0.7);
    --az-dark-border:  rgba(201,168,76,0.25);

    --az-light-bg:     #F8F5F0;
    --az-light-card:   #FFFFFF;
    --az-light-text:   #0D1B3E;
    --az-light-muted:  #666666;
    --az-light-border: rgba(0,0,0,0.08);

    --az-teal-bg:      #0E6B5E;
    --az-teal-card:    rgba(255,255,255,0.1);
    --az-teal-text:    #FFFFFF;
    --az-teal-muted:   rgba(255,255,255,0.75);
    --az-teal-border:  rgba(255,255,255,0.15);

    --az-gold:   #C9A84C;
    --az-radius: 6px;
}

/* ---------- Wrapper ---------- */
.az-testi-wrap {
    position: relative;
    overflow: hidden;
    padding: 48px 56px;
    border-radius: var(--az-radius);
    font-family: 'Lora', Georgia, serif;
}

/* ---------- Themes ---------- */
.az-testi-theme-dark  { background: var(--az-dark-bg); }
.az-testi-theme-light { background: var(--az-light-bg); }
.az-testi-theme-teal  { background: var(--az-teal-bg); }

/* ---------- Track (Slider) ---------- */
.az-testi-layout-slider .az-testi-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.az-testi-layout-slider .az-testi-slide {
    min-width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
}

/* ---------- Grid Layout ---------- */
.az-testi-layout-grid .az-testi-track {
    display: grid;
    grid-template-columns: repeat(var(--az-cols, 3), 1fr);
    gap: 28px;
}

.az-testi-layout-grid .az-testi-slide {
    min-width: unset;
}

@media (max-width: 768px) {
    .az-testi-layout-grid .az-testi-track {
        grid-template-columns: 1fr;
    }
}

/* ---------- Card ---------- */
.az-testi-card {
    background: var(--az-dark-card);
    border: 1px solid var(--az-dark-border);
    border-radius: var(--az-radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.az-testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.az-testi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--az-gold);
}

/* Theme: light */
.az-testi-theme-light .az-testi-card {
    background: var(--az-light-card);
    border-color: var(--az-light-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Theme: teal */
.az-testi-theme-teal .az-testi-card {
    background: var(--az-teal-card);
    border-color: var(--az-teal-border);
}

/* ---------- Type Badge ---------- */
.az-testi-type-badge {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--az-gold);
    border: 1px solid var(--az-gold);
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 20px;
}

/* ---------- Quote Icon ---------- */
.az-testi-quote-icon {
    font-size: 52px;
    line-height: 1;
    color: var(--az-gold);
    opacity: 0.6;
    margin-bottom: 12px;
    font-family: Georgia, serif;
}

/* ---------- Content ---------- */
.az-testi-content {
    margin-bottom: 28px;
}

.az-testi-content p {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(21px, 2.2vw, 32px);
    line-height: 1.5;
    color: var(--az-dark-muted);
    margin: 0 0 12px;
}

.az-testi-content.az-testi-content-short p {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.35;
}

.az-testi-content.az-testi-content-medium p {
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.45;
}

.az-testi-content.az-testi-content-long p {
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.65;
}

.az-testi-theme-light .az-testi-content p { color: var(--az-light-muted); }
.az-testi-theme-teal  .az-testi-content p { color: var(--az-teal-muted); }

.az-testi-reference {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--az-gold) !important;
    margin-top: 16px !important;
}

/* ---------- Author ---------- */
.az-testi-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.az-testi-theme-light .az-testi-author { border-top-color: rgba(0,0,0,0.08); }

.az-testi-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--az-gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.az-testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.az-testi-initial {
    font-family: 'Lato', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0D1B3E;
}

.az-testi-author-info strong {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.az-testi-theme-light .az-testi-author-info strong { color: var(--az-light-text); }

.az-testi-author-info span {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--az-gold);
}

/* ---------- Nav Arrows ---------- */
.az-testi-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.az-testi-nav:hover {
    background: var(--az-gold);
    border-color: var(--az-gold);
    color: #0D1B3E;
}

.az-testi-theme-light .az-testi-nav {
    border-color: rgba(0,0,0,0.15);
    background: #FFFFFF;
    color: #0D1B3E;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.az-testi-prev { left: 8px; }
.az-testi-next { right: 8px; }

/* ---------- Dots ---------- */
.az-testi-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.az-testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.az-testi-dot.active,
.az-testi-dot:hover {
    background: var(--az-gold);
    transform: scale(1.4);
}

.az-testi-theme-light .az-testi-dot         { background: rgba(0,0,0,0.2); }
.az-testi-theme-light .az-testi-dot.active  { background: #0E6B5E; }

/* ---------- Empty state ---------- */
.az-testi-empty {
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

/* ---------- Type-specific colours ---------- */
.az-testi-type-verse  .az-testi-type-badge { color: #F4C842; border-color: #F4C842; }
.az-testi-type-quote  .az-testi-type-badge { color: #7ECBCB; border-color: #7ECBCB; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .az-testi-wrap    { padding: 36px 24px; }
    .az-testi-card    { padding: 28px 24px; }
    .az-testi-prev    { left: 4px; }
    .az-testi-next    { right: 4px; }
    .az-testi-nav     { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
    .az-testi-wrap  { padding: 28px 16px; }
    .az-testi-card  { padding: 24px 18px; }
}

/* ---------- Fade-in animation on load ---------- */
@keyframes azTesiFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.az-testi-card {
    animation: azTesiFadeIn 0.5s ease both;
}
