/* ========================================
   Módulo: Home
   ======================================== */

.home-container {
    max-width: 1600px;
    margin: 0 auto;
}

.welcome-section {
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color, #3D5268);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.welcome-subtitle {
    font-size: 16px;
    color: var(--text-secondary, #6B7C8E);
    margin: 0;
    font-weight: 400;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

.home-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--text-secondary, #6B7C8E);
    font-size: 15px;
}

.home-loading-skeleton {
    width: 100%;
    height: 510px;
    border-radius: 16px;
    background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
    background-size: 200% 100%;
    animation: home-skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes home-skeleton-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.home-empty-hint {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary, #6B7C8E);
    font-size: 14px;
    background: #F9FAFB;
    border-radius: 12px;
    margin-bottom: 20px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    height: 510px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.carousel-slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px;
}

.overlay-text {
    color: white;
}

.overlay-label {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.overlay-tags {
    font-size: 20px;
    font-weight: 600;
}

.overlay-hint {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 8px;
}

.banner-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d4054 0%, #4a7a9e 40%, #3d8ba8 100%);
    min-height: 100%;
}

.banner-placeholder-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 480px;
}

.banner-placeholder-icon {
    font-size: 64px;
    opacity: 0.7;
    margin-bottom: 20px;
}

.banner-placeholder-title {
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.banner-placeholder-subtitle {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.banner-placeholder-hint {
    font-size: 14px;
    opacity: 0.9;
}

.home-loading-cards {
    grid-column: 1 / -1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 5px;
}

.feature-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    min-height: 460px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background: linear-gradient(135deg, #3D5268 0%, #5B8BB5 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(64, 158, 186, 0.25) 0%, 
        rgba(58, 138, 166, 0.4) 25%, 
        rgba(52, 118, 146, 0.55) 45%, 
        rgba(46, 98, 126, 0.72) 65%, 
        rgba(40, 78, 106, 0.85) 80%, 
        rgba(35, 58, 86, 0.93) 92%, 
        rgba(30, 45, 65, 1) 100%);
    pointer-events: none;
}

.card-content {
    padding: 24px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.card-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-btn {
    background: white;
    color: #3D5268;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.card-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: white;
    color: #3D5268;
    text-decoration: none;
}

.card-btn i {
    font-size: 12px;
}

.quote-card {
    position: relative;
    width: 100%;
    min-height: 260px;
    /*flex: 1;*/
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    margin-top: 12px;
}

.quote-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.quote-text {
    font-size: 18px;
    color: white;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.quote-verse {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
}

.calendar-events-card {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color, transparent);
}

.calendar-events-card .calendar-widget,
.calendar-events-card .events-widget {
    background: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0;
}

.calendar-events-divider {
    height: 0;
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 24px 0;
}

.calendar-widget {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color, transparent);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-month {
    font-size: 17px;
    font-weight: 700;
    color: #001018;
    margin: 0;
    text-transform: capitalize;
}

.calendar-nav-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.calendar-nav {
    background: none;
    border: none;
    color: #6B7C8E;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    color: #001018;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 400;
    color: #9CA3AF;
    padding: 5px;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #001018;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #F0F4F7;
}

.calendar-day.selected {
    background: #5B8BB5;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 2px #3A5A7C;
}

.calendar-day.selected:hover {
    background: #4a7a9e;
    box-shadow: 0 0 0 2px #2d4560;
}

.calendar-day.today {
    background: #fff;
    color: #001018;
    font-weight: 600;
    border: 1px solid #93C5FD;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #93C5FD;
}

.calendar-day.today.selected {
    background: #fff;
    color: #001018;
    border-color: #93C5FD;
    box-shadow: 0 0 0 1px #93C5FD, 0 0 0 3px #3A5A7C;
}

.calendar-day.other-month.selected {
    background: #5B8BB5;
    color: #fff;
    box-shadow: 0 0 0 2px #3A5A7C;
}

.calendar-day.other-month {
    color: #B8C4CF;
}

.events-widget {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color, transparent);
}

.calendar-events-card .events-widget .events-title {
    margin-top: 0;
}

.events-title {
    font-size: 17px;
    font-weight: 700;
    color: #001018;
    margin-bottom: 16px;
    text-align: center;
}

.events-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.event-item:last-child {
    border-bottom: none;
}

.event-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.event-dot.green {
    background: var(--ark-sucesso, #27AE60);
}

.event-dot.purple {
    background: #9B59B6;
}

.event-dot.red {
    background: var(--ark-erro, #E74C3C);
}

.event-dot.blue {
    background: #3498DB;
}

.event-dot.gray {
    background: #95A5A6;
}

.events-empty {
    padding: 12px 0;
    margin: 0;
    font-size: 14px;
    color: #6B7C8E;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.event-name {
    font-size: 14px;
    color: #001018;
    font-weight: 700;
}

.event-time {
    font-size: 12px;
    color: #6B7C8E;
    margin-top: 2px;
}

.view-agenda-btn {
    width: 100%;
    background: #323743;
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.view-agenda-btn:hover {
    background: #252830;
    color: #fff;
}

.view-agenda-btn i {
    font-size: 14px;
    margin-left: 4px;
}

.floating-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #5B8BB5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(91, 139, 181, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
}

.floating-chat-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(91, 139, 181, 0.4);
}

.main-footer {
    background: var(--ark-fundo-claro, #f3f5f7);
    border-top: 1px solid var(--border-color, #D4DDE5);
    padding: 16px 24px;
    margin-top: auto;
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 12px;
    color: var(--text-secondary, #6B7C8E);
    margin: 0;
    font-weight: 400;
}

/* ========================================
   Responsividade - Home
   ======================================== */

@media (max-width: 1200px) {
    .home-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .home-content {
        gap: 20px;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .main-column {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    
    .sidebar-column {
        width: 100%;
        max-width: 100%;
        order: 2;
    }
    
    .main-content {
        padding: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .welcome-section {
        margin-bottom: 20px;
    }
    
    .welcome-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .banner-carousel {
        height: 250px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .carousel-image {
        object-fit: cover;
        object-position: center;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .carousel-btn.prev {
        left: 8px;
    }
    
    .carousel-btn.next {
        right: 8px;
    }
    
    .overlay-label {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .overlay-tags {
        font-size: 18px;
    }
    
    .carousel-overlay {
        padding: 20px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .feature-card {
        min-height: 280px;
        border-radius: 12px;
        width: 100%;
    }
    
    .card-image {
        width: 100%;
        height: 100%;
    }
    
    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .card-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .card-btn {
        font-size: 13px;
        padding: 10px 18px;
    }
    
    .calendar-widget,
    .events-widget,
    .calendar-events-card {
        margin-top: 0;
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .calendar-widget {
        padding: 18px;
    }
    
    .calendar-events-card {
        padding: 18px;
    }
    
    .calendar-month {
        font-size: 16px;
    }
    
    .weekday {
        font-size: 11px;
        padding: 4px;
    }
    
    .calendar-day {
        font-size: 13px;
    }
    
    .events-widget {
        padding: 18px;
    }
    
    .events-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .event-name {
        font-size: 13px;
    }
    
    .event-time {
        font-size: 11px;
    }
    
    .view-agenda-btn {
        padding: 12px;
        font-size: 13px;
    }
    
    .quote-card {
        height: 220px;
        margin-top: 0;
        border-radius: 12px;
    }
    
    .quote-overlay {
        padding: 24px;
    }
    
    .quote-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .quote-verse {
        font-size: 12px;
    }
    
    .floating-chat-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
    
    .main-footer {
        padding: 16px;
    }
    
    .footer-text {
        font-size: 12px;
    }
}
