/* Padres Specific Styles - Updated */
.main-content {
    position: relative;
    min-height: 100vh;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.main-content > * {
    position: relative;
    z-index: 1;
}

.padres-section {
    background: transparent;
    padding: 60px 0;
}

.padres-list {
    display: flex;
    gap: 52px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Padre Principal */
.padre-principal {
    background: white;
    border: 1px solid #d8d8d8;
    border-radius: 67.5px;
    height: 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.padre-principal:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.padre-principal .padre-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #c9c9c9;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.padre-principal .padre-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: top;
    display: block;
}

.padre-nome-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.padre-principal.active .padre-nome-container {
    opacity: 1;
    transform: translateX(0);
}

.padre-principal .padre-nome {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #717171;
    text-align: center;
    line-height: 38.451px;
    margin: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Outros Padres */
.padre-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.padre-item:hover {
    transform: scale(1.05);
}

.padre-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid #c9c9c9;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.padre-avatar:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.padre-avatar .padre-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.padre-item .padre-nome-container {
    background: white;
    border: 1px solid #d8d8d8;
    border-radius: 20px;
    padding: 8px 16px;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.padre-item.active .padre-nome-container {
    opacity: 1;
    transform: scale(1);
}

.padre-item .padre-nome {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #717171;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* Padre Details Section */
.padre-details-section {
    background: transparent;
    padding: 40px 0;
}

.padre-details-container {
    background: white;
    border: 1.354px solid #e5e7eb;
    border-radius: 13.537px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    margin: 0 auto;
}

.padre-details-image {
    width: 400px;
    position: relative;
    flex-shrink: 0;
}

.padre-details-img {
    width: 100%;
    object-fit: cover;
    border-radius: 13.537px;
}

.padre-details-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.padre-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.padre-details-name {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 28px;
    color: #233b63;
    line-height: 1.2;
    margin: 0;
}

.proximas-missas-badge {
    background: var(--primary-color);
    border-radius: 25px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;

    svg{
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

.proximas-missas-badge:hover {
    background: #3a67b3;
    transform: translateY(-2px);
}

.proximas-missas-badge span {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: white;
    line-height: 1.2;
}

.section-title {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: black;
    line-height: 1.2;
    margin: 0 0 15px 0;
}

.biography-text {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #717171;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-align: justify;
}

.saiba-mais-btn {
    background: #d1d1d1;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: black;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.saiba-mais-btn:hover {
    background: #b8b8b8;
    transform: translateY(-2px);
}

.paroquias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    height: auto;
    align-items: start;
}

.paroquia-item {
    background: #d1d1d1;
    border-radius: 25px;
    padding: 12px 20px;
    display: inline-block;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #000;
    line-height: 1.2;
    text-align: center;
    transition: all 0.3s ease;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
}

.paroquia-item:hover {
    background: #b8b8b8;
    transform: translateY(-2px);
    color: #000;
}

.padre-redes-sociais {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #d1d1d1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #b8b8b8;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    color: #666;
}

/* Responsividade */
@media (max-width: 1200px) {
    .padres-list {
        padding: 0 50px;
        gap: 30px;
    }
    
    .padre-principal {
        width: 300px;
        height: 90px;
    }
    
    .padre-principal .padre-avatar,
    .padre-avatar {
        width: 80px;
        height: 80px;
    }
    
    .padre-principal .padre-nome {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .padres-list {
        flex-direction: column;
        padding: 0 20px;
        gap: 20px;
    }
    
    .padre-principal {
        width: 100%;
        max-width: 400px;
        height: 90px;
    }
    
    .padre-principal .padre-avatar,
    .padre-avatar {
        width: 70px;
        height: 70px;
    }
    
    .padre-principal .padre-nome {
        font-size: 22px;
    }

    /* Padre Details Responsividade */
    .padre-details-container {
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .padres-list {
        padding: 0 10px;
    }
    
    .padre-principal {
        height: 60px;
    }
    
    .padre-principal .padre-avatar,
    .padre-avatar {
        width: 60px;
        height: 60px;
    }
    
    .padre-principal .padre-nome {
        font-size: 20px;
    }
    
    .padre-details-image {
        width: 100%;
        img{
            border-radius: 0px !important;
        }
    }
    
    .padre-details-content {
        width: 100%;
        height: auto;
        padding: 30px 20px;
    }
    
    .padre-details-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .proximas-missas-badge {
        width: 100%;
        max-width: 300px;
    }
    
    .paroquias-grid {
        width: 100%;
        height: auto;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .padre-redes-sociais {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Animações para Padres (baseado no TypeScript) */
[data-animate] {
    opacity: 0;
    animation-fill-mode: both;
}

.page-header h1[data-animate] {
    animation-delay: 0.2s;
}

.page-header .divider[data-animate] {
    animation-delay: 0.4s;
}

.page-header p[data-animate] {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: both;
}

.page-header p[data-animate]:not(.in-view) {
    opacity: 0;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active states */
.in-view[data-animate="fade-up"] {
    animation: fadeUp 0.8s ease-out forwards;
}