/**
 * Pause and Reflect Styles
 * OS 31/Oct/2025
 * 
 * Elegant monochromatic design for the reflection system
 */

/* ================================
   BASE STRUCTURE
   ================================ */

.wtd-pause-reflect-section {
    margin-top: 60px;
    padding: 0;
    background: transparent;
    position: relative;
}

.wtd-pause-reflect-section .container {
    min-width: 1000px;
    max-width: 1600px;
}

.wtd-reflections-wrapper {
    background: #fff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
}

/* ================================
   SECTION HEADER
   ================================ */

.wtd-reflections-header {
    padding: 50px 50px 40px;
    border-bottom: none;
    text-align: center;
    background: transparent;
}

.wtd-reflections-title {
    font-family: 'Cabin Sketch', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wtd-reflection-count-display {
    display: block;
    font-family: 'Cabin Sketch', sans-serif;
    font-size: 18px;
    color: #6b6b6b;
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.wtd-filter-author-link {
    color: #6b6b6b;
    text-decoration: underline;
    text-decoration-color: rgba(107, 107, 107, 0.3);
    text-underline-offset: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtd-filter-author-link:hover {
    color: #1a1a1a;
    text-decoration-color: rgba(26, 26, 26, 0.5);
}

.wtd-filter-author-link.active {
    color: #1a1a1a;
    text-decoration-color: #1a1a1a;
    font-weight: 500;
}

.wtd-clear-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(26, 26, 26, 0.08);
    border: 1px solid rgba(26, 26, 26, 0.15);
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.wtd-clear-filter-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

/* Filter Indicator */
.wtd-filter-indicator {
    text-align: center;
    margin: -10px 0 20px;
    padding: 10px 20px;
    color: #6b6b6b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wtd-filter-text {
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 400;
}

#wtd-filter-author-name {
    color: #1a1a1a;
    font-weight: 500;
}

.wtd-filter-separator {
    color: #6b6b6b;
    opacity: 0.5;
}

.wtd-show-all-btn {
    padding: 0;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(26, 26, 26, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.wtd-show-all-btn:hover {
    color: #000;
    text-decoration-color: rgba(0, 0, 0, 0.6);
}

/* Quick Author Filter Link */
.wtd-quick-author-filter {
    text-align: center;
    padding: 15px 20px 10px;
    margin: 0 0 15px;
}

.wtd-quick-author-filter-link {
    color: #6b6b6b;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: rgba(107, 107, 107, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.wtd-quick-author-filter-link:hover {
    color: #1a1a1a;
    text-decoration-color: rgba(26, 26, 26, 0.5);
}

/* Filter End Message */
.wtd-filter-end-message {
    text-align: center;
    padding: 30px 20px;
    margin: 20px 0;
    color: #6b6b6b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wtd-filter-end-text {
    color: #6b6b6b;
    font-weight: 400;
}

.wtd-filter-end-separator {
    color: #6b6b6b;
    opacity: 0.5;
}

.wtd-filter-end-show-all {
    padding: 0;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(26, 26, 26, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}

.wtd-filter-end-show-all:hover {
    color: #000;
    text-decoration-color: rgba(0, 0, 0, 0.6);
}

.wtd-reflections-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0 auto 25px;
    font-weight: 400;
    max-width: 600px;
}

/* ================================
   VIEW REFLECTIONS TOGGLE
   ================================ */

.wtd-view-reflections-wrapper {
    text-align: center;
    padding: 30px 50px;
    border-top: 1px solid rgba(240, 236, 232, 0.5);
}

.wtd-view-reflections-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #fae9d6;
    border: 1px solid #f4d7b6;
    border-radius: 25px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
}

.wtd-view-reflections-toggle:hover {
    background: #e5ddd5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wtd-toggle-label {
    font-size: 14px;
}

.wtd-view-chevron {
    font-size: 16px;
    color: #6b6b6b;
    transition: transform 0.3s ease;
    display: inline-block;
}

.wtd-view-reflections-toggle.expanded .wtd-view-chevron {
    transform: rotate(180deg);
}

/* Sort Toggle - iOS Style */
.wtd-sort-toggle-wrapper {
    text-align: right;
    padding: 0 50px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.wtd-sort-toggle {
    display: inline-block;
    cursor: pointer;
}

.wtd-toggle-track {
    position: relative;
    width: 70px;
    height: 32px;
    background: #f0ece8;
    border: 1px solid #e5ddd5;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

/* Search Box */
.wtd-reflection-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 300px;
    margin-right: auto;
}

.wtd-reflection-search-input {
    width: 100%;
    padding: 8px 35px 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: inherit;
}

.wtd-reflection-search-input:focus {
    border-color: #999;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.wtd-reflection-search-input::placeholder {
    color: #999;
    opacity: 1;
}

.wtd-search-clear {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    color: #999;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.wtd-search-clear:hover {
    color: #666;
}

/* Search highlight */
.wtd-search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
}

.wtd-sort-toggle:hover .wtd-toggle-track {
    background: #e5ddd5;
}

.wtd-toggle-knob {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.wtd-sort-toggle[data-order="asc"] .wtd-toggle-knob {
    left: 41px;
}

.wtd-clock-icon {
    width: 14px;
    height: 14px;
    color: #6b6b6b;
}

.wtd-sort-arrow {
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    color: #6b6b6b;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.wtd-arrow-left {
    opacity: 0;
}

.wtd-arrow-right {
    opacity: 1;
}

.wtd-sort-toggle[data-order="asc"] .wtd-arrow-left {
    opacity: 1;
}

.wtd-sort-toggle[data-order="asc"] .wtd-arrow-right {
    opacity: 0;
}

/* ================================
   EMAIL SUBSCRIPTION TOGGLE
   ================================ */

.wtd-email-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f0ece8;
    border: 1px solid #e5ddd5;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wtd-email-toggle:hover {
    background: #e5ddd5;
    transform: translateY(-2px);
}

.wtd-email-toggle.subscribed {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.wtd-email-toggle.subscribed .wtd-email-icon {
    stroke: #fff;
    fill: #fff;
}

.wtd-email-toggle.subscribed:hover {
    background: #333;
    border-color: #333;
}

.wtd-email-icon {
    stroke: #6b6b6b;
    transition: all 0.3s ease;
}

/* Email Subscription Modal */
.wtd-email-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Changed from flex - will be set by JS */
    align-items: center;
    justify-content: center;
    z-index: 999999 !important; /* Increased z-index */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wtd-email-modal.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.wtd-email-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.wtd-email-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #f0ece8;
}

.wtd-email-modal-header h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.wtd-email-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b6b6b;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.wtd-email-modal-close:hover {
    color: #1a1a1a;
}

.wtd-email-modal-body {
    padding: 30px;
}

.wtd-email-address {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
    margin: 0 0 15px 0;
    padding: 15px;
    background: #f9f8f7;
    border-radius: 8px;
}

.wtd-subscription-options {
    margin-bottom: 25px;
}

.wtd-subscription-option {
    display: block;
    padding: 18px;
    margin-bottom: 12px;
    border: 2px solid #e5ddd5;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.5;
}

.wtd-subscription-option:hover {
    border-color: #ccc;
    background: #f9f8f7;
}

.wtd-subscription-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.wtd-subscription-option input[type="radio"]:checked + span {
    font-weight: 500;
}

.wtd-subscription-option:has(input[type="radio"]:checked) {
    border-color: #1a1a1a;
    background: #f9f8f7;
}

.wtd-email-modal-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.wtd-email-footnote {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400;
    color: #aaa;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.wtd-email-footnote a {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.wtd-email-footnote a:hover {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.wtd-email-save-btn,
.wtd-email-cancel-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.wtd-email-save-btn {
    background: #1a1a1a;
    color: #fff;
}

.wtd-email-save-btn:hover {
    background: #333;
}

.wtd-email-cancel-btn {
    background: #f0ece8;
    color: #1a1a1a;
}

.wtd-email-cancel-btn:hover {
    background: #e5ddd5;
}

.wtd-email-message {
    padding: 12px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    text-align: center;
}

.wtd-email-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wtd-email-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ================================
   REFLECTION FORM
   ================================ */

.wtd-reflection-form-wrapper {
    padding: 40px 50px 50px;
    border-bottom: none;
    background: transparent;
}

.wtd-reflection-form {
    position: relative;
}

.wtd-form-header {
    margin-bottom: 15px;
}

.wtd-form-meta {
    display: block;
}

.wtd-user-name,
.wtd-reflection-author-name {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    display: inline-block;
    margin-right: 10px;
    letter-spacing: -0.02em;
}

.wtd-admin-badge {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    background: rgba(229, 221, 213, 0.5);
    padding: 4px 12px;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

.wtd-reply-context {
    color: #999;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 400;
}

/* ================================
   TEXTAREA & WORD COUNTER
   ================================ */

.wtd-textarea-wrapper {
    position: relative;
}

.wtd-reflection-textarea {
    width: 100%;
    min-height: 120px;
    padding: 20px;
    padding-bottom: 40px; /* Extra space for inline counter */
    border: 1px solid #f0ece8;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    resize: none; /* Disable manual resize since we auto-expand */
    transition: height 0.2s ease;
    background: #fafaf8;
    overflow: hidden; /* Prevent scrollbar */
}

.wtd-reflection-textarea:focus {
    outline: none;
    border-color: #e5ddd5;
    background: #fff;
}

.wtd-reflection-textarea::placeholder {
    color: #a8a8a8;
    font-size: 15px;
    line-height: 1.5;
}

.wtd-inline-word-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    font-family: 'Manrope', sans-serif;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.wtd-inline-word-counter .wtd-word-count {
    font-weight: 600;
    color: #1a1a1a;
}

/* Color states for inline counter */
.wtd-textarea-wrapper.wtd-under-limit .wtd-inline-word-counter .wtd-word-count {
    color: #ff9800;
}

.wtd-textarea-wrapper.wtd-over-limit .wtd-inline-word-counter .wtd-word-count {
    color: #d32f2f;
}

.wtd-form-footer {
    margin-top: 12px;
    text-align: right;
}

.wtd-word-counter {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
}

.wtd-word-count {
    font-weight: 600;
    color: #1a1a1a;
}

.wtd-word-counter.wtd-over-limit .wtd-word-count {
    color: #d32f2f;
}

.wtd-word-counter.wtd-under-limit .wtd-word-count {
    color: #ff9800;
}

/* ================================
   FORM ACTIONS
   ================================ */

.wtd-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.wtd-submit-btn,
.wtd-cancel-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtd-submit-btn {
    background: #1a1a1a;
    color: #fff;
}

.wtd-submit-btn:hover:not(:disabled) {
    background: #000;
    transform: translateY(-1px);
}

.wtd-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wtd-cancel-btn {
    background: #f0ece8;
    color: #6b6b6b;
}

.wtd-cancel-btn:hover {
    background: #e5ddd5;
    color: #1a1a1a;
}

/* ================================
   WORD LIMIT MODAL
   ================================ */

.wtd-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wtdFadeIn 0.3s ease;
}

.wtd-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.wtd-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: wtdSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wtd-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: wtdBounce 0.6s ease;
}

.wtd-modal-title {
    font-family: 'Cabin Sketch', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    letter-spacing: -0.02em;
}

.wtd-modal-message {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0 0 30px 0;
}

.wtd-modal-close-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 40px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtd-modal-close-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes wtdFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes wtdSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes wtdBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ================================
   REPLY CONTEXT
   ================================ */

.wtd-reply-context {
    background: #f0ece8;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wtd-reply-label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #6b6b6b;
}

.wtd-reply-author {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.wtd-clear-reply {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    color: #a8a8a8;
    cursor: pointer;
    padding: 0 5px;
}

.wtd-clear-reply:hover {
    color: #6b6b6b;
}

/* ================================
   LOGIN PROMPT
   ================================ */

.wtd-login-prompt {
    padding: 40px 50px 60px;
    text-align: center;
    border-bottom: none;
    background: transparent;
}

.wtd-login-prompt p {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: #6b6b6b;
    margin: 0;
}

.wtd-login-prompt a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #d4d4d4;
}

.wtd-login-prompt a:hover {
    border-color: #1a1a1a;
}

/* ================================
   REFLECTIONS LIST
   ================================ */

.wtd-reflections-list {
    padding: 45px 50px 30px;
    min-height: 200px;
    background: transparent;
}

/* Subtle fade-in animation for reflections */
.wtd-reflection-item {
    animation: reflectionFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.wtd-reflection-item:nth-child(1) { animation-delay: 0.1s; }
.wtd-reflection-item:nth-child(2) { animation-delay: 0.2s; }
.wtd-reflection-item:nth-child(3) { animation-delay: 0.3s; }
.wtd-reflection-item:nth-child(4) { animation-delay: 0.4s; }
.wtd-reflection-item:nth-child(5) { animation-delay: 0.5s; }

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

.wtd-no-reflections {
    text-align: center;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: #a8a8a8;
    padding: 60px 20px;
    margin: 0;
}

/* ================================
   THOUGHT TILES - ELEGANT CARD DESIGN
   ================================ */

.wtd-reflection-item {
    background: linear-gradient(135deg, #fafaf8 0%, #f8f5f2 100%);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Left accent line */
.wtd-reflection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e5ddd5 0%, #f0ece8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Shimmer effect overlay */
.wtd-reflection-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.8s ease-in-out;
    pointer-events: none;
}

/* Stagger shimmer for each card */
.wtd-reflection-item:nth-child(1)::after { animation-delay: 0.3s; }
.wtd-reflection-item:nth-child(2)::after { animation-delay: 0.5s; }
.wtd-reflection-item:nth-child(3)::after { animation-delay: 0.7s; }
.wtd-reflection-item:nth-child(4)::after { animation-delay: 0.9s; }
.wtd-reflection-item:nth-child(5)::after { animation-delay: 1.1s; }

.wtd-reflection-item:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.wtd-reflection-item:hover::before {
    opacity: 1;
}

/* Shimmer animation - elegant light sweep */
@keyframes shimmer {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.wtd-reflection-item:nth-child(even) {
    background: linear-gradient(135deg, #f8f5f2 0%, #fafaf8 100%);
}

.wtd-reflection-item:last-child {
    margin-bottom: 0;
}

.wtd-reflection-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 15px;
}

.wtd-reflection-author {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.wtd-reflection-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.wtd-reflection-author-name {
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Biennale', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.wtd-reflection-author-name:hover {
    color: #6b6b6b;
}

.wtd-reflection-time {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: #a8a8a8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtd-reflection-edit-info {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #6b6b6b;
}

.wtd-edit-reflection-btn {
    background: none;
    border: none;
    color: #6b6b6b;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wtd-edit-reflection-btn:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* ================================
   REFLECTION CONTENT - THE INSIGHT
   ================================ */

.wtd-reflection-content {
    padding-left: 0;
    position: relative;
}

.wtd-reflection-text {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    line-height: 1.8;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.wtd-reflection-text::first-letter {
    font-size: 1.4em;
    font-weight: 500;
    color: #2d2d2d;
}

.wtd-reflection-word-count {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #a8a8a8;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ================================
   ADMIN REFLECTIONS - AUTHOR'S VOICE
   ================================ */

.wtd-reflection-item.wtd-admin-reflection:not(.wtd-reflection-reply) {
    background: linear-gradient(135deg, #f0ece8 0%, #e8e4df 100%);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid rgba(229, 221, 213, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wtd-reflection-item.wtd-admin-reflection:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.wtd-reflection-item.wtd-admin-reflection .wtd-reflection-content {
    padding-left: 0;
}

.wtd-reflection-item.wtd-admin-reflection .wtd-reflection-text {
    font-size: 20px;
    line-height: 1.85;
}

/* ================================
   REFLECTION ACTIONS - SUBTLE INTERACTIONS
   ================================ */

.wtd-reflection-actions {
    padding-left: 0;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 12px;
}

.wtd-toggle-replies-btn {
    background: rgba(240, 236, 232, 0.6);
    border: 1px solid rgba(229, 221, 213, 0.4);
    padding: 8px 18px;
    border-radius: 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wtd-toggle-replies-btn:hover {
    background: rgba(229, 221, 213, 0.8);
    border-color: #e5ddd5;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.wtd-toggle-icon {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wtd-toggle-replies-btn.expanded .wtd-toggle-icon {
    transform: rotate(45deg);
}

.wtd-author-replied-indicator {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    text-transform: lowercase;
}

.wtd-toggle-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Highlight when author has replied */
.wtd-toggle-replies-btn.has-author-reply {
    background: rgba(229, 221, 213, 0.7);
    border-color: rgba(229, 221, 213, 0.8);
    color: #1a1a1a;
    padding-left: 12px; /* More padding when no icon */
}

.wtd-toggle-replies-btn.has-author-reply:hover {
    background: rgba(229, 221, 213, 0.95);
    border-color: #e5ddd5;
}

.wtd-reply-btn {
    background: rgba(26, 26, 26, 0.04);
    border: 1px solid rgba(26, 26, 26, 0.08);
    padding: 8px 22px;
    border-radius: 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wtd-reply-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    transform: translateY(-1px);
}

/* ================================
   THREADED REPLIES - NESTED ELEGANCE
   ================================ */

.wtd-reflection-replies {
    margin-top: 25px;
    margin-left: 0;
    padding-left: 35px;
    border-left: 2px solid rgba(240, 236, 232, 0.6);
}

.wtd-reflection-item.wtd-reflection-reply {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
    padding: 25px;
    margin-bottom: 20px;
}

.wtd-reflection-item.wtd-reflection-reply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wtd-reflection-reply .wtd-reflection-content,
.wtd-reflection-reply .wtd-reflection-actions {
    padding-left: 0;
}

/* Subtle depth variations */
.wtd-depth-1 { margin-left: 0; }
.wtd-depth-2 { 
    margin-left: 0;
    opacity: 0.98;
}
.wtd-depth-3 { 
    margin-left: 0;
    opacity: 0.96;
}

/* ================================
   LOADING STATES
   ================================ */

.wtd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    color: #a8a8a8;
}

.wtd-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f0ece8;
    border-top-color: #6b6b6b;
    border-radius: 50%;
    animation: wtd-spin 0.8s linear infinite;
}

@keyframes wtd-spin {
    to { transform: rotate(360deg); }
}

/* ================================
   LOAD MORE
   ================================ */

.wtd-load-more-wrapper {
    padding: 20px 50px 50px;
    text-align: center;
    background: transparent;
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.wtd-load-more-btn {
    background: #f0ece8;
    border: 1px solid #e5ddd5;
    padding: 12px 40px;
    border-radius: 25px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wtd-load-more-btn:hover {
    background: #e5ddd5;
    color: #1a1a1a;
    transform: translateY(-1px);
}

.wtd-load-more-show-all {
    background: transparent;
    border: 1px solid #e5ddd5;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #6b6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wtd-load-more-show-all:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
    .wtd-pause-reflect-section .container {
        min-width: auto;
        max-width: 100%;
    }
}

/* Disable 3D effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .wtd-reflection-item {
        transform-style: flat !important;
        perspective: none !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .wtd-pause-reflect-section .container {
        min-width: auto;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .wtd-reflections-wrapper {
        border-radius: 15px;
        box-shadow: none;
    }
    
    .wtd-reflections-header,
    .wtd-reflection-form-wrapper,
    .wtd-reflections-list {
        padding: 30px 25px;
    }
    
    .wtd-load-more-wrapper {
        padding: 30px 25px;
        flex-wrap: wrap;
    }
    
    .wtd-reflections-title {
        font-size: 22px;
        gap: 8px;
    }
    
    .wtd-reflection-count-display {
        font-size: 15px;
        margin-top: 6px;
        margin-bottom: 12px;
    }
    
    .wtd-filter-author-link {
        text-decoration-thickness: 1px;
    }
    
    .wtd-clear-filter-btn {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .wtd-filter-indicator {
        margin: -5px 0 15px;
        padding: 8px 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .wtd-filter-text {
        font-size: 13px;
    }
    
    .wtd-show-all-btn {
        font-size: 13px;
    }
    
    .wtd-filter-end-message {
        padding: 25px 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    .wtd-quick-author-filter {
        padding: 12px 15px 8px;
        margin: 0 0 12px;
    }
    
    .wtd-quick-author-filter-link {
        font-size: 13px;
    }
    
    .wtd-view-reflections-wrapper {
        padding: 20px 25px;
    }
    
    .wtd-view-reflections-toggle {
        font-size: 14px;
        padding: 10px 25px;
    }
    
    .wtd-toggle-label {
        font-size: 13px;
    }
    
    .wtd-view-chevron {
        font-size: 14px;
    }
    
    .wtd-sort-toggle-wrapper {
        padding: 0 25px 15px;
        text-align: right;
    }
    
    .wtd-toggle-track {
        width: 60px;
        height: 28px;
    }
    
    .wtd-toggle-knob {
        width: 22px;
        height: 22px;
    }
    
    .wtd-clock-icon {
        width: 12px;
        height: 12px;
    }
    
    /* Mobile Search Box Styles */
    .wtd-reflection-search-wrapper {
        max-width: 100%;
        margin-right: 10px;
        flex: 1;
    }
    
    .wtd-reflection-search-input {
        padding: 6px 30px 6px 10px;
        font-size: 13px;
    }
    
    .wtd-sort-toggle[data-order="asc"] .wtd-toggle-knob {
        left: 35px;
    }
    
    .wtd-reflection-item {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .wtd-reflection-item.wtd-admin-reflection:not(.wtd-reflection-reply) {
        padding: 30px 20px;
    }
    
    .wtd-reflection-text {
        font-size: 17px;
        line-height: 1.7;
    }
    
    .wtd-reflection-text::first-letter {
        font-size: 1.3em;
    }
    
    .wtd-reflection-author-name {
        font-size: 16px;
    }
    
    .wtd-reflection-content,
    .wtd-reflection-actions {
        padding-left: 0;
    }
    
    .wtd-reflection-replies {
        margin-left: 0;
        padding-left: 20px;
    }
    
    .wtd-reflection-item.wtd-reflection-reply {
        padding: 20px 15px;
    }
    
    .wtd-reflection-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .wtd-toggle-replies-btn,
    .wtd-reply-btn {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .wtd-depth-2 { margin-left: 0; }
    .wtd-depth-3 { margin-left: 0; }
    
    .wtd-reflection-textarea {
        font-size: 15px;
        padding: 15px;
        padding-bottom: 35px; /* Space for inline counter on mobile */
    }
    
    .wtd-inline-word-counter {
        font-size: 11px;
        bottom: 10px;
        right: 12px;
        padding: 3px 6px;
    }
    
    .wtd-modal-content {
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .wtd-modal-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .wtd-modal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .wtd-modal-message {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .wtd-modal-close-btn {
        padding: 10px 35px;
        font-size: 14px;
    }
}

