/* Scoped styles based on .geloofsmeter-wrapper to prevent leaks */

.geloofsmeter-wrapper {
    --gm-primary-color: #8bb7f0;
    --gm-accent-color: #d4a373;
    --gm-text-color: #ffffff;
    --gm-glass-bg: rgba(255, 255, 255, 0.05);
    --gm-glass-border: rgba(255, 255, 255, 0.1);
    --gm-glass-blur: 10px;
    --gm-font-family: 'Outfit', sans-serif;

    font-family: var(--gm-font-family);
    color: var(--gm-text-color);
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    border-radius: 10px;
    /* Optional rounded container in WP page */
    min-height: 600px;
    /* Ensure space */
}


.geloofsmeter-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.geloofsmeter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.geloofsmeter-app-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding: 40px 20px;
    box-sizing: border-box;
}

.geloofsmeter-section {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Glassmorphism */
.geloofsmeter-glass {
    background: var(--gm-glass-bg);
    backdrop-filter: blur(var(--gm-glass-blur));
    -webkit-backdrop-filter: blur(var(--gm-glass-blur));
    border: 1px solid var(--gm-glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.geloofsmeter-section h2 {
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
    color: white;
    /* Ensure visibility inside WP themes */
}

/* Meters */
.geloofsmeter-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 60px;
    margin-bottom: 2rem;
    position: relative;
    min-height: 300px;
    /* Force height since direct rendering */
}

.geloofsmeter-bar {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.geloofsmeter-fill {
    width: 100%;
    background: linear-gradient(to top, #4facfe 0%, #00f2fe 100%);
    transition: height 1s ease-out;
    border-radius: 0 0 30px 30px;
    z-index: 1;
}

.fund-color {
    background: linear-gradient(to top, #43e97b 0%, #38f9d7 100%);
}

.geloofsmeter-value {
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Markers */
.geloofsmeter-marker {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.5);
    z-index: 2;
    pointer-events: none;
}

.geloofsmeter-marker span {
    position: absolute;
    right: 120%;
    top: -0.5em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Controls */
.geloofsmeter-controls {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.geloofsmeter-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-family: var(--gm-font-family);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.geloofsmeter-btn:active {
    transform: scale(0.95);
}

.geloofsmeter-msg {
    font-size: 1.1rem;
    color: #ffecd2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .geloofsmeter-app-container {
        flex-direction: column;
        padding: 20px 0;
    }

    .geloofsmeter-section {
        width: 100%;
        min-height: 400px;
    }
}