/* SOCIAL MODULE & PET IA & LOGIN MODULES */

/* ---------------- SOCIAL (PETGRAM) ---------------- */
.social-layout {
    max-width: 600px;
    margin: 0 auto; padding-top: 80px;
    padding-bottom: 5rem;
}

/* Stories */
.stories-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
}
.stories-container::-webkit-scrollbar { display: none; }

.story-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    min-width: 80px;
}

.story-ring {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), #EC4899);
    padding: 3px;
    transition: transform 0.3s ease;
}

.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #000;
    object-fit: cover;
}
.story-bubble p { color: #FFF; font-size: 0.75rem; font-weight: 600; }

/* Feed Posts Base */
.feed-post {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.post-user-info { display: flex; align-items: center; gap: 12px; }
.post-avatar { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-primary); }
.post-user-name { color: #FFF; font-weight: 700; font-size: 1rem; display: flex; flex-direction: column; }
.post-location { font-size: 0.75rem; color: #94A3B8; font-weight: 400; }

/* ---------------- SOCIAL BADGES ---------------- */
.post-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-tutor { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.badge-pro { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.badge-company { background: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.badge-kennel { background: rgba(139, 92, 246, 0.2); color: #8B5CF6; }
.badge-ngo { background: rgba(236, 72, 153, 0.2); color: #EC4899; }
.badge-alert { background: #EF4444; color: #FFF; animation: pulse-red 2s infinite; }

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.post-image-container { width: 100%; position: relative; }
.post-image { width: 100%; max-height: 500px; object-fit: cover; }
.post-cat-tag {
    position: absolute; top: 15px; right: 15px;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    color: #FFF; padding: 5px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
}

.post-content { padding: 1.2rem; }
.post-title { color: #FFF; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.post-text { color: #E2E8F0; font-size: 0.95rem; line-height: 1.5; margin-bottom: 15px; }

/* ---------------- TEMPLATES ESPECIAIS ---------------- */

/* Adoption Template */
.adoption-card { border: 2px solid #EC4899 !important; }
.adoption-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 15px;
}
.info-item { display: flex; flex-direction: column; font-size: 0.8rem; color: #94A3B8; }
.info-item span { font-weight: 700; color: #FFF; }
.temp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.temp-tag { background: #EC4899; color: #FFF; padding: 3px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 700; }

/* Lost Dog Template */
.alert-card { border: 4px solid #EF4444 !important; background: rgba(239, 68, 68, 0.05); }
.alert-header { background: #EF4444; color: #FFF; padding: 12px; text-align: center; font-weight: 900; letter-spacing: 2px; font-size: 1.1rem; }

/* Buttons & Tray */
.post-actions { display: flex; justify-content: space-between; padding: 0 1.2rem 1.2rem 1.2rem; }
.action-left { display: flex; gap: 15px; }
.act-btn { background: none; border: none; color: #FFF; font-size: 1.3rem; cursor: pointer; transition: transform 0.2s; }
.act-btn:hover { transform: scale(1.2); color: var(--color-primary); }

.cta-post-btn {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 900;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.cta-adoption { background: #EC4899; color: #FFF; box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3); }
.cta-pro { background: var(--color-primary); color: #000; box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3); }
.cta-alert { background: #EF4444; color: #FFF; box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3); }
.cta-default { background: rgba(255,255,255,0.1); color: #FFF; border: 1px solid rgba(255,255,255,0.2); }

/* ---------------- BOTTOM NAVIGATION ---------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(2, 44, 34, 0.98);
    backdrop-filter: blur(30px);
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 2000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #64748B;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-item i { font-size: 1.5rem; }
.nav-item.active { color: var(--color-primary); transform: translateY(-5px) scale(1.1); }
.nav-item:hover { color: #FFF; }

/* Alert Scan Animation */
.alert-scan { position: relative; overflow: hidden; }
.alert-scan::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: #EF4444;
    box-shadow: 0 0 20px #EF4444;
    animation: scan-alert 2s infinite linear;
}
@keyframes scan-alert {
    0% { top: 0; opacity: 0; }
    50% { top: 100%; opacity: 1; }
    100% { top: 0; opacity: 0; }
}
