/*
 * Hero Section Styles
 * For use with Custom HTML blocks in WordPress Block Editor
 * KCShofarYah Theme
 */.custom-hero-container {
    font-family: 'Poppins', sans-serif;
}

.custom-hero {
    /* Using the flower background with a lighter gradient overlay so the image is visible */
    background-color: var(--space-indigo); /* Fallback color */
    /* background-image set via functions.php */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--platinum);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: row; /* Side-by-side on desktop */
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    gap: 4rem; /* Space between columns */
    padding-top: 1.5rem; /* Increased padding to account for absolute navbar */
}

.custom-hero-content {
    /* Removed flex: 1 to prevent it from pushing too far left */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%; /* Ensure it takes up space but respects max-width */
}

.custom-hero-image-container {
    /* Removed flex: 1 to keep it close to the content */
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: .5rem;  */
}

.hero-portrait {
    width: 100%;
    max-width: 400px; /* Controls the size of the tall image */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 4px solid rgba(255,255,255,0.1);
    object-fit: cover;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .custom-hero {
        flex-direction: column; /* Stack on mobile */
        padding: 3rem 1rem;
        padding-top: 1.5rem;
        gap: 2rem;
    }
    
    .custom-hero-image-container {
        width: 100%;
    }
    
    .hero-portrait {
        max-width: 300px; /* Smaller on mobile */
    }
}

.custom-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.custom-hero p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    max-width: 600px;
    color: #ffffff; /* Pure white for better contrast */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Shadow to lift text off background */
    /* background: rgba(43, 44, 88, 0.6); */
    padding: 1.5rem;
    border-radius: 12px;
    /* backdrop-filter: blur(4px); */
}

.hero-video-card {
    background: #ffffff; /* Solid white to match video background */
    padding: 10px;
    border-radius: 20px;
    /* Match the shadow and border of the hero portrait */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 4px solid rgba(255,255,255,0.1);
    background-clip: padding-box; /* Ensures the border is transparent against the hero background */
    margin-bottom: 1rem;
    width: 100%;
    max-width: 500px; /* Adjust based on video aspect ratio */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-card {
    position: relative;
    isolation: isolate;
}

.hero-video-card video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    outline: none;
}

.mute-toggle {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.mute-toggle svg {
    width: 20px;
    height: 20px;
}

.mute-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.mute-toggle:active {
    transform: scale(0.95);
}

/* Listen Section Styles */
.listen-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.listen-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--platinum);
    font-weight: bold;
    opacity: 0.9;
}

.listen-icons {
    display: flex;
    gap: 1.5rem;
}

.listen-icon {
    color: white;
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.listen-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.listen-icon.spotify:hover {
    color: #1DB954; /* Spotify Green */
}

.listen-icon.youtube:hover {
    color: #FF0000; /* YouTube Red */
}

/* Removed old button styles if no longer needed, or keep for other uses */
.custom-hero-btn {
    display: inline-block;
    background-color: var(--turquoise-surf);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 165, 213, 0.4);
    color: white;
}

/* Donate Section Styles */
.donate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.donate-label-hero {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--platinum);
    font-weight: bold;
    opacity: 0.9;
}

.donate-buttons {
    display: flex;
    gap: 1rem;
}

.donate-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.donate-btn i {
    font-size: 1.5rem;
}

.donate-btn:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    color: white;
}