/* Glassmorphism Styles */
.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.glassmorphism-dark {
    background: rgba(41, 54, 129, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}


.animate-spin-slow {
    animation: spin-slow 15s linear infinite;
}

/* ============================================================
   COMMENTS SECTION (CommentsSection Livewire)
   ============================================================ */

.comments-section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Form ---- */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-input-row {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
}

.comment-avatar-sm {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 1.5px solid #e2e8f0;
    flex-shrink: 0;
}

.comment-input-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-textarea {
    width: 100%;
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #334155;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}

.comment-textarea:focus {
    border-color: #4274D9;
    box-shadow: 0 0 0 3px rgba(66, 116, 217, 0.1);
}

.comment-textarea::placeholder {
    color: #94a3b8;
}

.comment-error-msg {
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 600;
}

.comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 2.625rem;
}

.comment-char-hint {
    font-size: 0.65rem;
    color: #94a3b8;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: 0.625rem;
    background: #293681;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(41, 54, 129, 0.18);
}

.comment-submit-btn:hover {
    background: #4274D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(66, 116, 217, 0.25);
}

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

/* ---- Login prompt ---- */
.comment-login-prompt {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

/* ---- List ---- */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
}

.comments-list::-webkit-scrollbar {
    width: 4px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

/* ---- Single comment item ---- */
.comment-item {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    animation: fadeInUp 0.3s ease-out forwards;
}

.comment-bubble-wrap {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
}

.comment-bubble {
    flex: 1;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 0 0.875rem 0.875rem 0.875rem;
    padding: 0.5rem 0.75rem;
}

.comment-bubble-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.comment-author {
    font-size: 0.78rem;
    font-weight: 800;
    color: #293681;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author:hover {
    color: #4274D9;
}

.comment-time {
    font-size: 0.65rem;
    color: #94a3b8;
}

.comment-body {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.55;
    word-break: break-word;
}

.comment-delete-btn {
    flex-shrink: 0;
    margin-top: 0.35rem;
    color: #cbd5e1;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.375rem;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.comment-delete-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ---- Empty state ---- */
.comment-empty-state {
    text-align: center;
    padding: 1.25rem 0 0.5rem;
}

