.header {
    background: linear-gradient(135deg, var(--primary-color), #2a5a8a);
    color: white;
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 4px 15px rgba(58, 110, 165, 0.2);
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px; 
    z-index: 1000;
    
    background: linear-gradient(135deg, var(--primary-color), #2a5a8a);
    padding: 15px 15px 10px 15px;
    text-align: center;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: var(--header-height);
}


.header-sticky.scrolled {
    padding: 8px 15px;
    background: rgba(42, 90, 138, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-sticky::before,
.header-sticky::after {
    content: "✝";
    position: absolute;
    font-size: 18px;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.header-sticky::before {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-sticky::after {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.header-sticky.scrolled::before,
.header-sticky.scrolled::after {
    font-size: 14px;
    opacity: 0.3;
}

.header-spacer {
    height: 0.1px;
    transition: height 0.3s ease;
}

.header-scrollable {
    padding: 15px;
    padding-top: calc(var(--header-height) + 20px);
    text-align: center;
    animation: fadeDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    position: relative;
}

.header-scrollable::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.app-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.header-sticky.scrolled .app-title {
    font-size: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-sticky.scrolled .app-title::after {
    width: 30px;
    bottom: -3px;
}

.app-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 5px 0 12px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.app-subtitle::before,
.app-subtitle::after {
    content: '•';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 12px;
    opacity: 0.5;
}

.app-subtitle::before {
    left: 0;
}

.app-subtitle::after {
    right: 0;
}

.date-display {
    margin: 0 auto;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.date-display:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.date-display i {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.main-content {
    padding: 15px;
    padding-bottom: 80px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header-verse {
    font-size: 0.75rem;
    margin-top: 10px;
    opacity: 0.8;
    font-style: italic;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeDown 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@media (max-width: 480px) {
    .header-sticky {
        max-width: 100%;
    }

    .app-title {
        font-size: 1.3rem;
    }

    .header-sticky.scrolled .app-title {
        font-size: 1.1rem;
    }

    .app-subtitle {
        font-size: 0.75rem;
    }
}


