/* ========================================
   Memorial Site - Beautiful & Elegant Styles
   ======================================== */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #d4af37;
    --accent-light: #f4e4bc;
    --text-color: #333;
    --text-light: #666;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-cream);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Floating Candles Background
   ======================================== */
.candles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.candle {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.4), transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.5;
}

.candle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.candle:nth-child(2) { left: 30%; animation-delay: 2s; animation-duration: 12s; }
.candle:nth-child(3) { left: 50%; animation-delay: 1s; animation-duration: 9s; }
.candle:nth-child(4) { left: 70%; animation-delay: 3s; animation-duration: 11s; }
.candle:nth-child(5) { left: 90%; animation-delay: 0.5s; animation-duration: 13s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1.2s ease-out;
}

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

.memorial-photo-container {
    margin-bottom: 32px;
}

.memorial-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 0 80px rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

.memorial-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4), 0 0 100px rgba(212, 175, 55, 0.2);
}

.memorial-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1));
    border: 4px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.memorial-photo-placeholder svg {
    width: 80px;
    height: 80px;
    fill: rgba(212, 175, 55, 0.5);
}

.memorial-name {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.memorial-dates {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 32px;
}

.memorial-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--accent-light);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(212, 175, 55, 0.6);
    border-bottom: 2px solid rgba(212, 175, 55, 0.6);
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Biography Section
   ======================================== */
.biography {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-cream) 100%);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.title-decoration {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.biography-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.biography-content p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-light);
}

/* ========================================
   Condolences Section
   ======================================== */
.condolences-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-cream);
}

/* Contact page specific styles - Extended blue background */
.contact-page-body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.contact-hero-wrapper {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding-bottom: 0;
}

.hero.contact-hero {
    background: transparent;
    padding-bottom: 50px;
}

/* Scroll hint on contact page */
.scroll-hint {
    margin-top: 40px;
    text-align: center;
    opacity: 1;
}

.scroll-hint span {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow-hint {
    color: var(--accent-color);
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.6);
    animation: bounceArrow 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounceArrow {
    0%, 100% { 
        transform: translateY(0);
        opacity: 1;
    }
    50% { 
        transform: translateY(15px);
        opacity: 0.7;
    }
}

.biography-section.contact-page-bio {
    background: transparent;
    padding: 40px 0;
}

.biography-section.contact-page-bio .biography-content p {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.1rem;
    line-height: 1.8;
}

.condolences-section.contact-page-form {
    background: transparent;
    padding: 60px 0 100px 0;
}

.condolences-section.contact-page-form .section-title {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.condolences-section.contact-page-form .title-decoration {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.condolences-section.contact-page-form h3 {
    color: var(--primary-color) !important;
}

.condolences-section.contact-page-form .form-subtitle {
    color: #666 !important;
}

.condolences-section.contact-page-form label {
    color: #333 !important;
}

.condolence-form-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-medium);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.condolence-form-container h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 8px;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 16px;
}

.form-notice {
    color: var(--text-body);
    margin-bottom: 32px;
    font-size: 0.95rem;
    font-style: italic;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    text-align: center;
}

.form-notice #liveHoursText {
    font-weight: 600;
    color: var(--accent-color);
}

.condolence-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row.two-columns .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e8e4dc;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8e4dc, #f5f0e8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #e8e4dc;
    transition: var(--transition);
}

.avatar-preview svg {
    width: 40px;
    height: 40px;
    fill: #bbb;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload input[type="file"] {
    display: none;
}

.avatar-label {
    padding: 12px 24px;
    background: var(--bg-cream);
    border: 2px solid #e8e4dc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.avatar-label:hover {
    background: var(--accent-light);
    border-color: var(--accent-color);
}

/* Submit Button */
.submit-btn {
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

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

.btn-icon {
    font-size: 1.3rem;
}

/* ========================================
   Condolences List
   ======================================== */
.condolences-list {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.condolence-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition);
    animation: fadeIn 0.5s ease-out;
}

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

.condolence-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.condolence-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.condolence-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.condolence-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    text-align: center;
    padding: 0;
    margin: 0;
}

.condolence-meta {
    flex: 1;
}

.condolence-author {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.condolence-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.condolence-message {
    padding-left: 72px;
}

.condolence-message p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.condolence-candle {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.5rem;
    opacity: 0.6;
}

.no-condolences {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.candle-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.no-condolences p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ========================================
   Footer
   ======================================== */
/* Scroll Down Button */
.scroll-down-btn {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.scroll-down-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.scroll-down-btn:hover {
    background: #c9a02e;
    transform: translateX(-50%) translateY(5px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.scroll-arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-down-btn {
        width: 50px;
        height: 50px;
        bottom: 30px;
    }
    
    .scroll-arrow-down {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 12px solid white;
    }
}

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 60px 0;
    text-align: center;
}

.footer-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--accent-light);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-content {
        padding: 20px;
    }
    
    .memorial-photo,
    .memorial-photo-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .form-row.two-columns {
        flex-direction: column;
    }
    
    .condolence-form-container {
        padding: 32px 24px;
    }
    
    .condolence-message {
        padding-left: 0;
        margin-top: 12px;
    }
    
    .condolence-card {
        padding: 20px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .section-title {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .memorial-name {
        font-size: 2rem;
    }
    
    .memorial-quote {
        font-size: 1.1rem;
    }
    
    .condolence-header {
        flex-wrap: wrap;
    }
    
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
}

.toast.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.toast.error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Loading State
   ======================================== */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

/* ========================================
   Edit/Delete Actions
   ======================================== */
.condolence-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-left: 72px;
}

.edit-btn, .delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.edit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}

.edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Delete button removed - users can only edit */

/* Edit Form */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
}

.edit-author {
    padding: 10px 14px;
    border: 2px solid #e8e4dc;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
}

.edit-message {
    padding: 10px 14px;
    border: 2px solid #e8e4dc;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    resize: vertical;
}

.edit-author:focus, .edit-message:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.edit-actions {
    display: flex;
    gap: 8px;
}

.save-btn, .cancel-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cancel-btn {
    background: #95a5a6;
    color: #fff;
}

.cancel-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

@media (max-width: 768px) {
    .condolence-actions {
        padding-left: 0;
        margin-top: 16px;
    }
}

/* ========================================
   New Message Notification (Styled like condolence cards)
   ======================================== */
.new-message-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    max-width: 500px;
    z-index: 1000;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.new-message-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-medium), 0 0 30px rgba(212, 175, 55, 0.4);
    border: 2px solid var(--accent-color);
    position: relative;
}

.notification-header-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e4dc;
}

.notification-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.notification-header-text strong {
    font-size: 1.1rem;
    font-family: var(--font-serif);
    color: var(--accent-color);
}

.view-message-btn {
    width: 100%;
    margin-top: 16px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    border: none;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.view-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* New message highlight animation */
.condolence-card.new-message {
    animation: highlightNew 2s ease-out;
}

@keyframes highlightNew {
    0% {
        background: rgba(212, 175, 55, 0.2);
        transform: scale(1.02);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .new-message-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* ========================================
   Infinite Scroll Loading Indicator
   ======================================== */
.loading-indicator {
    text-align: center;
    padding: 40px 20px;
    margin-top: 20px;
    min-height: 80px;
    display: block !important;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    font-size: 1.1rem;
    color: var(--text-light);
    font-family: var(--font-sans);
    display: inline-block;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ========================================
   Live Badge
   ======================================== */
.live-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #dc2626;
    white-space: nowrap;
    animation: pulse 2s ease-in-out infinite;
}

.live-badge::before {
    content: '🔴 ';
    font-size: 0.7rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========================================
   Social Share Buttons (Low-key)
   ======================================== */
.social-share {
    margin: 24px 0 32px;
    padding: 16px;
    text-align: center;
}

.share-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.share-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.share-btn:hover svg {
    opacity: 1;
}

.share-btn.copy.copied {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

@media (max-width: 768px) {
    .share-buttons {
        gap: 6px;
    }
    
    .share-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}
