/*
Theme Name: Community Connect
Theme URI: https://community-connect.example.com/
Author: Community Connect Team
Author URI: https://community-connect.example.com/
Description: A modern, user-friendly bilingual theme for managing missing persons profiles and reuniting families. Features responsive design, subscription-based access, and integrated community support system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: community-connect
Tags: community, missing-persons, bilingual, responsive, subscription, custom-post-type
*/

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #059669;
    --secondary-hover: #047857;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --bg-light: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    letter-spacing: -0.011em;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.top-contact-bar {
    background: transparent;
    color: white;
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1002;
}

/* Transparent top bar on home page with auto-hide on scroll */
 .top-contact-bar {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.top-contact-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.top-contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-link {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15); 
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; 
}

.whatsapp-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-link {
    padding: 0.375rem 0.75rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    transition: var(--transition);
}

.lang-link.active,
.lang-link:hover {
    border-bottom:2px solid rgba(255, 255, 255, 0.15);
    color: white;
}

.site-header {
    background: var(--text-dark);
    background-size: cover;
    background-position: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Transparent header on home page */
.site-header {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    z-index: 1001;
    top: 45px;
}

.site-header.top-bar-hidden {
    top: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Header styles consistent across all pages */
.site-header .site-logo,
.site-header .nav-menu a {
    color: white;
}

.site-header .site-logo:hover,
.site-header .nav-menu a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.site-header .mobile-menu-toggle {
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.site-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.site-header.top-bar-hidden .site-logo img {
    max-width: 80px;
}

.site-header.top-bar-hidden .header-content {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-menu a:hover {
    color: var(--text-dark);
}

.nav-menu a::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.hero-banner {
    /* Background is set dynamically via WordPress Customizer in index.php */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: visible;
    padding: 8rem 2rem 8rem;
}

/* Hero covers header and top bar on home page */
.hero-banner {
    margin-top: -198px;
    padding-top: 250px;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.15), transparent 50%);
    pointer-events: none;
}

/* SVG Wave Shape at bottom of hero */
.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' opacity='0.33' d='M473,67.3c-203.9,88.3-263.1-34-320.3,0C66,119.1,0,59.7,0,59.7V0h1000v59.7 c0,0-62.1,26.1-94.9,29.3c-32.8,3.3-62.8-12.3-75.8-22.1C806,49.6,745.3,8.7,694.9,4.7S492.4,59,473,67.3z'/%3E%3Cpath fill='%23ffffff' opacity='0.66' d='M734,67.3c-45.5,0-77.2-23.2-129.1-39.1c-28.6-8.7-150.3-10.1-254,39.1 s-91.7-34.4-149.2,0C115.7,118.3,0,39.8,0,39.8V0h1000v36.5c0,0-28.2-18.5-92.1-18.5C810.2,18.1,775.7,67.3,734,67.3z'/%3E%3Cpath fill='%23ffffff' d='M766.1,28.9c-200-57.5-266,65.5-395.1,19.5C242,1.8,242,5.4,184.8,20.6C128,35.8,132.3,44.9,89.9,52.5C28.6,63.7,0,0,0,0 h1000c0,0-9.9,40.9-83.6,48.1S829.6,47,766.1,28.9z'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
	transform: rotate(180deg);
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.6;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--text-gray);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.stats-section {
    background: white;
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 12px;
    box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.15);
    background: #DBE2EF;
    transition: var(--transition);
}

.stat-item::before {
    display: none;
}

.stat-item:hover {
    transform: none;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-icon::before {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-item:hover .stat-icon {
    transform: rotate(360deg);
    background: rgba(37, 99, 235, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    display: none;
}

.cards-grid,
.missing-person-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card,
.missing-person-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.card:hover,
.missing-person-card:hover {
    border-color: var(--text-gray);
    box-shadow: var(--shadow-lg);
}

.card-image,
.card-thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.card-description,
.card-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.badge-found {
    background: #d1fae5;
    color: #065f46;
}

.badge-missing {
    background: #fee2e2;
    color: #991b1b;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: white;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-white);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid;
    font-size: 0.9375rem;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

.site-footer {
    background: var(--bg-gray);
    color: var(--text-dark);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.footer-section p,
.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: var(--text-dark);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .top-contact-bar .container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-info {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }

    .whatsapp-link {
        display: none;
    }

    .language-switcher .lang-link:not(.active) {
        display: inline-block;
    }

    .language-switcher .lang-link.active {
        display: none;
    }

    body.home .site-header {
        top: 70px;
    }

    body.home .site-header.top-bar-hidden {
        top: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .main-navigation.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        padding: 1rem 0;
        display: block;
        width: 100%;
    }

    .hero-banner {
        background-attachment: scroll;
    }

    body.home .hero-banner {
        margin-top: -132px;
        padding-top: 180px;
    }

    /* Apply mobile hero positioning to all pages with hero banners */
    body:not(.home) .hero-banner[style*="margin-top: -198px"] {
       margin-top: -225px !important;
       padding-top: 282px !important;
    }

    .hero-banner::after {
        height: 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cards-grid,
    .missing-person-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.py-4 { padding: 1rem 0; }

/* Additional Modern Utilities */
.text-balance {
    text-wrap: balance;
}

.max-w-prose {
    max-width: 65ch;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--bg-gray), white);
}

/* ========================================
   Found Persons / Success Stories Styles
   ======================================== */

/* Mark as Found Button */
.mark-as-found-btn {
    color: #059669 !important;
    transition: all 0.3s ease;
}

.mark-as-found-btn:hover {
    background: #d1fae5 !important;
    transform: scale(1.1);
}

/* Testimony Form Styles */
.testimony-form input:focus,
.testimony-form textarea:focus,
.testimony-form select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.testimony-form .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

/* Found Person Card */
.found-person-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.found-person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.15);
    border-color: #059669;
}

.found-person-card .found-person-photo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Success Badge */
.success-badge,
.badge-found {
    background: linear-gradient(135deg, #059669, #0891b2);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-found i {
    font-size: 10px;
}

/* Reunion Timeline */
.reunion-timeline {
    position: relative;
    padding: 40px 0;
}

.reunion-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #e2e8f0, #059669);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    text-align: right;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    text-align: left;
}

.timeline-content {
    width: 45%;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #059669;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.2);
}

/* Before/After Photos */
.before-after-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.photo-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-container img {
    width: 100%;
    height: auto;
    display: block;
}

.photo-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* Celebration Effects */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.celebration-heart {
    animation: heartbeat 1.5s infinite;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #059669;
    animation: confetti-fall 3s linear infinite;
}

/* Found Person Archive Grid */
.found-persons-archive .found-persons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.found-persons-archive .found-person-card:hover img {
    transform: scale(1.05);
}

/* Days Missing Badge */
.days-missing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #059669, #0891b2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Family Quote Styling */
.family-quote-box {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border-left: 6px solid #f59e0b;
    border-radius: 16px;
    padding: 40px 50px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.family-quote-box::before {
    content: '"';
    font-size: 120px;
    position: absolute;
    top: -20px;
    left: 20px;
    color: rgba(245, 158, 11, 0.1);
    line-height: 1;
}

.family-quote-box p {
    font-size: 22px;
    font-style: italic;
    color: #78350f;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.share-btn-facebook {
    background: #1877f2;
    color: white;
}

.share-btn-twitter {
    background: #1da1f2;
    color: white;
}

.share-btn-whatsapp {
    background: #25d366;
    color: white;
}

/* Archived Profile Notice */
.archived-profile-notice {
    background: linear-gradient(135deg, #059669, #0891b2);
    padding: 30px 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.archived-profile-content {
    opacity: 0.7;
    pointer-events: none;
    filter: grayscale(50%);
}

/* Success Stories Section on Homepage */
.success-stories-section .card {
    transition: all 0.3s ease;
}

.success-stories-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.15);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .reunion-timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        justify-content: flex-end !important;
        text-align: left !important;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .before-after-photos {
        grid-template-columns: 1fr;
    }
    
    .found-persons-archive .found-persons-grid {
        grid-template-columns: 1fr;
    }
    
    .family-quote-box {
        padding: 30px 25px;
    }
    
    .family-quote-box p {
        font-size: 18px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.found-person-card,
.timeline-item,
.testimony-form {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.2s;
}
