/* Modern Institutional Design - Paróquia Nossa Senhora do Rosário */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: hsl(45, 100%, 50%); /* Gold-ish for premium feel */
    --text-color: hsl(0, 0%, 100%);
    --text-secondary: hsl(0, 0%, 90%);
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blur-strength: 16px;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end; /* Move content to the right side */
    align-items: center;
    background-image: url('Papel de Parede PNSR.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    position: relative;
    padding: 2rem 8%; /* Padding to keep it off the screen edge */
}

/* Dark overlay to ensure text readability over any wallpaper */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from transparent to dark on the right */
    background: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.85) 100%);
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px; /* Slightly narrower for a sidebar feel */
    background: rgba(20, 20, 20, 0.75); /* Darker glass background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5); /* Shadow directed to the left */
    animation: fadeInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

header {
    margin-bottom: var(--spacing-lg);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin-bottom: 1rem;
}

.info-section {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.info-section strong {
    color: #fff;
    font-weight: 600;
}

.address {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.priest {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: hsl(45, 100%, 60%);
}

.btn-receipt {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    border: none;
    font-weight: 600;
}

.btn-receipt:hover {
    background: linear-gradient(135deg, #1e8449 0%, #27ae60 100%);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.4);
}

footer {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile & Tablet Optimizations */
@media (max-width: 900px) {
    body {
        justify-content: center;
        align-items: flex-end; /* Move to bottom on smaller screens */
        padding: 1rem;
    }
    
    body::before {
        /* Gradient from top to bottom */
        background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.9) 100%);
    }

    .container {
        max-width: 100%;
        padding: 2rem 1.5rem;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5); /* Shadow upwards */
        animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
}
