/* Hero Block Styles */
.wpe-hero-block {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #0f4c21 0%, #1a7431 50%, #2d5016 100%);
    color: white;
    overflow: hidden;
}

.wpe-hero-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,30 50,50 T100,50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.1;
}

.wpe-hero-overlay {
    position: relative;
    z-index: 1;
}

.wpe-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.wpe-event-badges-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.wpe-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wpe-badge-cop {
    background: rgba(255,255,255,0.25);
    color: white;
    backdrop-filter: blur(10px);
}

.wpe-badge-location {
    background: #ffc107;
    color: #000;
}

.wpe-badge-significance {
    background: rgba(255,255,255,0.15);
    border: 2px solid white;
}

.wpe-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.wpe-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.4;
}

.wpe-hero-tagline {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.wpe-hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.wpe-meta-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.wpe-meta-icon {
    flex-shrink: 0;
}

.wpe-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.wpe-meta-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wpe-meta-sub {
    display: block;
    font-size: 0.875rem;
    opacity: 0.85;
}

.wpe-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.wpe-btn-hero-primary,
.wpe-btn-hero-secondary,
.wpe-btn-hero-outline {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.wpe-btn-hero-primary {
    background: white;
    color: #0f4c21;
}

.wpe-btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.wpe-btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid white;
}

.wpe-btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.wpe-btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.wpe-btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpe-hero-title {
        font-size: 2rem;
    }

    .wpe-hero-subtitle {
        font-size: 1.125rem;
    }

    .wpe-hero-meta-grid {
        grid-template-columns: 1fr;
    }

    .wpe-hero-actions {
        flex-direction: column;
    }

    .wpe-hero-actions button {
        width: 100%;
        justify-content: center;
    }
}


/* Hero Block Styles */
.wpe-hero-block-wrapper {
    position: relative;
    isolation: isolate;
}

.wpe-hero-block {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #0f4c21 0%, #1a7431 50%, #2d5016 100%);
    color: white;
    overflow: hidden;
}

/* YouTube Background Styles */
.wpe-hero-youtube-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.wpe-hero-youtube-bg.loaded {
    opacity: 1;
}

.wpe-hero-youtube-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* YouTube Overlay (untuk menambah contrast dengan text) */
.wpe-hero-youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Background Image Support */
.wpe-hero-block-wrapper[data-background-type="image"] .wpe-hero-block {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wpe-hero-block-wrapper[data-background-type="image"] .wpe-hero-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for readability */
    z-index: 0;
}

/* Pattern overlay (only for gradient/color, not for image/youtube) */
.wpe-hero-block-wrapper[data-background-type="gradient"] .wpe-hero-block::before,
.wpe-hero-block-wrapper[data-background-type="color"] .wpe-hero-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,30 50,50 T100,50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    opacity: 0.1;
    z-index: 0;
}

.wpe-hero-overlay {
    position: relative;
    z-index: 2;
}

.wpe-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.wpe-event-badges-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.wpe-badge {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.wpe-badge-cop {
    background: rgba(255,255,255,0.25);
    color: white;
}

.wpe-badge-location {
    background: #ffc107;
    color: #000;
}

.wpe-badge-significance {
    background: rgba(255,255,255,0.15);
    border: 2px solid white;
    color: white;
}

.wpe-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.wpe-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.wpe-hero-tagline {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.wpe-hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.wpe-meta-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.wpe-meta-icon {
    flex-shrink: 0;
    font-size: 2rem;
}

.wpe-meta-content {
    flex: 1;
}

.wpe-meta-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.wpe-meta-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.wpe-meta-sub {
    display: block;
    font-size: 0.875rem;
    opacity: 0.85;
}

.wpe-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.wpe-btn-hero-primary,
.wpe-btn-hero-secondary,
.wpe-btn-hero-outline {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.wpe-btn-hero-primary {
    background: white;
    color: #0f4c21;
}

.wpe-btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.wpe-btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid white;
}

.wpe-btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.wpe-btn-hero-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.wpe-btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wpe-hero-title {
        font-size: 2rem;
    }

    .wpe-hero-subtitle {
        font-size: 1.125rem;
    }

    .wpe-hero-meta-grid {
        grid-template-columns: 1fr;
    }

    .wpe-hero-actions {
        flex-direction: column;
    }

    .wpe-hero-actions button,
    .wpe-hero-actions a {
        width: 100%;
        justify-content: center;
    }
    
    /* YouTube responsive */
    .wpe-hero-youtube-bg iframe {
        width: 100vw;
        height: 56.25vw;
    }
}

/* Loading state untuk YouTube */
.wpe-hero-youtube-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: wpe-youtube-spin 1s linear infinite;
    opacity: 1;
    transition: opacity 0.3s;
}

.wpe-hero-youtube-bg.loaded::after {
    opacity: 0;
}

@keyframes wpe-youtube-spin {
    to { transform: rotate(360deg); }
}