/* ==================== MOBILE-FIRST DESIGN ==================== */

:root {
    --primary: #f59e0b;
    --secondary: #fbbf24;
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* ==================== BARRA SUPERIOR COM BOAS-VINDAS ==================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.welcome-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-icon-header {
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.welcome-content-header {
    flex: 1;
    min-width: 0;
}

.welcome-greeting {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 0.15rem 0;
    line-height: 1.2;
}

.welcome-blessing {
    font-size: 0.85rem;
    color: #fbbf24;
    margin: 0;
    font-weight: 500;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== BOTÕES PADRONIZADOS ==================== */

/* Botão de Menu - AMARELO (Principal) */
.menu-btn,
.profile-btn {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botão de Sair/Logout - VERMELHO */
.profile-btn.logout-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    width: auto;
    padding: 0 14px;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-btn.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.05);
}

.sync-status {
    background: rgba(156, 163, 175, 0.15);
    border: 1.5px solid rgba(156, 163, 175, 0.3);
    color: #9ca3af;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-status.synced {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.sync-status.syncing {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    animation: rotate 1s linear infinite;
}

.sync-status.error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.sync-status.warning {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.sync-status:hover {
    transform: scale(1.05);
}

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

.menu-btn:hover,
.profile-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: scale(1.05);
}

.search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text-white);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* ==================== TOP BAR PAGE STYLE ==================== */
.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 600px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

/* Botão de Voltar - VERDE */
.back-btn {
    background: rgba(34, 197, 94, 0.15);
    border: 1.5px solid rgba(34, 197, 94, 0.4);
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0 14px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.6);
    transform: scale(1.05);
}

/* ==================== CALENDAR MOBILE ==================== */
.calendar-section {
    padding: 1rem;
    background: var(--bg-card);
    margin: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.month-nav-btn {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-nav-btn:hover {
    background: rgba(245, 158, 11, 0.3);
}

.calendar-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-gray);
    padding: 0.5rem 0;
    font-weight: 600;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.today {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.calendar-day.has-event {
    background: rgba(245, 158, 11, 0.1);
}

.calendar-day.has-event.culto {
    background: rgba(59, 130, 246, 0.3);
    border: 2px solid #3b82f6;
}

.calendar-day.has-event.evento {
    background: rgba(16, 185, 129, 0.3);
    border: 2px solid #10b981;
}

.calendar-day.has-event.retiro {
    background: rgba(139, 92, 246, 0.3);
    border: 2px solid #8b5cf6;
}

.calendar-day.has-event.evento-interno {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid #1e3a8a;
}

.calendar-day.has-event.aniversario {
    background: rgba(236, 72, 153, 0.3);
    border: 2px solid #ec4899;
}

.calendar-day.has-event.ensaio {
    background: rgba(245, 158, 11, 0.3);
    border: 2px solid #f59e0b;
}

.calendar-day:not(.empty):hover {
    background: rgba(245, 158, 11, 0.15);
    transform: scale(1.05);
}

.event-dot {
    display: none;
}

.group-marker {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* Indicador de múltiplos eventos */
.multi-event-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 0, 0, 0.5);
    z-index: 2;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(245, 158, 11, 0);
    }
}

/* Lista de eventos no modal */
.events-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1rem 0;
}

.event-list-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-list-card:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateX(4px);
}

.event-list-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 60px;
}

.event-list-content {
    flex: 1;
}

.event-list-content h4 {
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-white);
}

.event-list-content .event-local {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0.25rem 0 0 0;
}

.event-list-card .event-arrow {
    color: var(--text-gray);
    font-size: 1.5rem;
}

.calendar-legend {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.culto {
    background: #3b82f6;
}

.legend-dot.evento {
    background: #10b981;
}

.legend-dot.retiro {
    background: #8b5cf6;
}

.legend-dot.aniversario {
    background: #ec4899;
}

/* ==================== EVENTS TIMELINE MOBILE ==================== */
.events-section {
    padding: 0 1rem;
}

.events-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.events-timeline-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-card-mobile {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.event-card-mobile:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.event-card-mobile.highlight-event {
    animation: highlight-pulse 1s ease-in-out 3;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

@keyframes highlight-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.1);
    }
}

.event-date-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    min-width: 60px;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.date-month {
    display: block;
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.25rem;
}

.event-local {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: 0.25rem;
    font-weight: 500;
}

.event-detail-local {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.5rem 0;
}

.event-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-badges .event-badge {
    margin-bottom: 0;
}

.group-badge {
    --group-color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--group-color);
    color: var(--group-color);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
}

.group-badge--corner {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1;
}

.group-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--group-color);
}

.event-badge.culto {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.event-badge.evento {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.event-badge.retiro {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.event-badge.evento-interno {
    background: rgba(30, 58, 138, 0.2);
    color: #1e3a8a;
}

.event-badge.aniversario {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.event-arrow {
    color: var(--text-gray);
    font-size: 1.5rem;
}

.no-events {
    text-align: center;
    color: var(--text-gray);
    padding: 2rem;
}

.btn-add-event {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-event span {
    font-size: 1.5rem;
}

.btn-add-event:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.sync-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: rotate(180deg);
}

.sync-btn:active {
    transform: rotate(360deg);
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    align-items: flex-end;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: calc(100% - 24px);
    margin: 0 auto 12px;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
}

.event-detail-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.event-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.event-detail-badges .event-detail-badge {
    margin-bottom: 0;
}

.event-detail-badge.culto {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.event-detail-badge.evento {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.event-detail-badge.retiro {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.event-detail-badge.evento-interno {
    background: rgba(30, 58, 138, 0.2);
    color: #1e3a8a;
}

.event-detail-badge.aniversario {
    background: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

.birthday-icon {
    font-size: 4rem;
    text-align: center;
    margin: 1rem 0;
}

.event-detail-time {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.event-detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem;
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

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

.btn {
    flex: 1;
    padding: 0.875rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    z-index: 4000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==================== MENU LATERAL ==================== */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: left 0.3s ease;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.side-menu-header h3 {
    color: var(--primary);
}

.side-menu-header button {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.side-menu-links {
    list-style: none;
    padding: 1rem;
}

.side-menu-links li {
    margin-bottom: 0.5rem;
}

.side-menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.side-menu-links a:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
.main-content {
    margin-top: 140px; /* Espaço para header expandido */
    padding: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== CARROSSEL DE BANNERS ==================== */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.banner-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

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

.banner-content h2 {
    font-size: 1.5rem;
    margin: 0;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.event-details {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin-top: 0.5rem !important;
    line-height: 1.4;
}

.banner-btn {
    background: var(--primary);
    border: none;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ==================== CARROSSEL DE DATAS ==================== */
.date-carousel-section {
    margin-bottom: 2rem;
}

.date-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.today-btn {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.today-btn:hover {
    background: rgba(245, 158, 11, 0.3);
    transform: scale(1.05);
}

.date-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}

.date-carousel::-webkit-scrollbar {
    height: 4px;
}

.date-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.date-carousel::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 2px;
}

.date-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

.date-card {
    min-width: 70px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.date-card.today {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.date-card.has-event::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.date-card.has-birthday::before {
    background: #ec4899;
}

.date-card.has-both::before {
    background: linear-gradient(135deg, #ec4899 0%, var(--primary) 100%);
}

.date-card:hover,
.date-card.selected {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-4px);
}

.date-card.today:hover {
    background: rgba(245, 158, 11, 0.25);
}

.date-weekday {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.date-card.today .date-day {
    color: var(--primary);
}

.date-month {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
}

/* ==================== CATEGORIAS ==================== */
.categories {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.category-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    position: relative;
}

.category-card:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-card span {
    display: block;
    font-size: 0.85rem;
}

/* ==================== BANNER DE DESTAQUE ==================== */
.highlight-banner {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.highlight-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.highlight-content p {
    margin-bottom: 1rem;
}

.highlight-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.highlight-btn {
    background: var(--primary);
    border: none;
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.highlight-btn:hover {
    transform: scale(1.05);
}

/* ==================== DESTAQUES ==================== */
.best-offers {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.offers-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.offers-scroll::-webkit-scrollbar {
    height: 8px;
}

.offers-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.offers-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.offer-card {
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.offer-image {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.offer-card h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.offer-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.offer-date {
    display: block;
    color: var(--text-white);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.offer-btn {
    width: 100%;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.offer-btn:hover {
    background: rgba(245, 158, 11, 0.3);
}

/* ==================== MENU DE NAVEGAÇÃO INFERIOR ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 70px;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
}

.nav-item:hover {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================== RESPONSIVIDADE ==================== */
/* ==================== CONJUNTO LOUVOR - BOTÕES ====================*/
.add-hino-btn {
    width: 100%;
    padding: 15px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.add-hino-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

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

/* ==================== RESPONSIVIDADE ==================== */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 0.75rem;
    }

/* ==================== CONJUNTO LOUVOR STYLES ==================== */

/* Agenda (7 dias) */
.agenda-section {
    padding: 1rem;
    overflow-x: auto;
}

.agenda-container {
    display: flex;
    gap: 0.75rem;
    min-height: 88px;
}

.agenda-card {
    min-width: 64px;
    height: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agenda-card.today {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.agenda-card.has-event {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.agenda-day-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.agenda-day-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
}

.agenda-indicator {
    font-size: 0.8rem;
}

/* Timeline base */
.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.timeline-date {
    min-width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.timeline-day {
    font-size: 1.2rem;
}

.timeline-month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.timeline-content {
    flex: 1;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
}

.timeline-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-action {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-gray);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

/* Timeline tipo badges */
.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 8px;
}

.timeline-badge.tipo-abertura {
    background: #fef3c7;
    color: #92400e;
}

.timeline-badge.tipo-meio {
    background: #dbeafe;
    color: #1e40af;
}

/* Timeline item variations */
.timeline-item.tipo-abertura {
    border-left-color: #f59e0b;
}

.timeline-item.tipo-meio {
    border-left-color: #3b82f6;
}

.timeline-item.tipo-abertura .timeline-date {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.timeline-item.tipo-meio .timeline-date {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Mendley/Trecho box */
.timeline-mendley {
    margin-top: 12px;
    padding: 12px;
    background: #f9fafb;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #4b5563;
    white-space: pre-wrap;
    max-height: 150px;
    overflow-y: auto;
}

.timeline-mendley strong {
    color: #1f2937;
}

/* Button search hino */
.btn-search-hino {
    width: 100%;
    margin-top: 8px;
    padding: 10px 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-search-hino:hover {
    background: #059669;
}

.btn-search-hino:active {
    transform: scale(0.98);
    background: #047857;
}

/* Action buttons variations */
.btn-action.btn-harpa {
    background: #f59e0b;
    color: white;
}

.btn-action.btn-harpa:hover {
    background: #d97706;
}

.btn-action.btn-cifra {
    background: #8b5cf6;
    color: white;
}

.btn-action.btn-cifra:hover {
    background: #7c3aed;
}

.btn-action.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-action.btn-edit:hover {
    background: #2563eb;
}

.btn-action.btn-delete {
    background: #ef4444;
    color: white;
}

.btn-action.btn-delete:hover {
    background: #dc2626;
}

/* ==================== END CONJUNTO LOUVOR STYLES ==================== */

/* ==================== LOUVOR CARDS BONITOS ==================== */
.louvor-event-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.louvor-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.card-header-louvor {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-date-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    min-width: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-date-day {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: white;
}

.card-date-month {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

.card-title-section {
    flex: 1;
}

.event-badge-louvor {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title-louvor {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-body-louvor {
    padding: 1.25rem;
}

.card-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
    font-size: 14px;
}

.card-info-row:last-child {
    margin-bottom: 0;
}

.card-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.card-actions-louvor {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-action-louvor {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action-louvor:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-action-louvor span {
    font-size: 16px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #0F7A6D 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Estilos para os botões do modal de WhatsApp */
.btn-whatsapp-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Animações para toast */
@keyframes slideUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* Preview do YouTube no Card */
.youtube-preview-card {
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.youtube-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.youtube-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.4);
}

.youtube-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.youtube-thumbnail:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-info {
    padding-top: 0.75rem;
}

.youtube-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-watch-youtube {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-watch-youtube:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

/* ==================== END LOUVOR CARDS ==================== */

/* ==================== PRAYER CARDS ==================== */
#prayersList {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.prayer-card {
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.prayer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.prayer-card.answered {
    border-left: 4px solid #10b981 !important;
}

.prayer-card .btn {
    transition: all 0.2s ease;
    font-weight: 500;
}

.prayer-card .btn:active {
    transform: scale(0.95);
}

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

@media (max-width: 640px) {
    #prayersList {
        gap: 0.75rem;
    }

    .prayer-card {
        padding: 0.75rem !important;
    }

    .prayer-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.75rem !important;
    }

    .main-content {
        max-width: 600px;
    }
}

/* ==================== ANIMAÇÕES ==================== */

/* Animação de pulse para o badge */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Badge do grupo no carrossel */
.carousel-group-badge {
    animation: fadeInBounce 0.5s ease-out;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    60% {
        opacity: 1;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
