/* Zen Mode Specific Styles */

/* Zen Mode Button on Main Page */
.zen-mode-btn {
    position: fixed;
    left: 10px;
    bottom: 60px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 100;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.zen-mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.zen-mode-btn:active {
    transform: translateY(0);
}

.zen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    border-bottom: 1px solid var(--tile-default);
    position: relative;
}

.zen-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zen-mode-badge {
    position: absolute;
    top: -8px;
    right: -25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.zen-stats {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.zen-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.zen-stat-label {
    font-size: 0.65rem;
    opacity: 0.7;
    white-space: nowrap;
}

.zen-stat-value {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-primary);
}

.back-btn {
    position: fixed;
    right: 10px;
    bottom: 10px;
    padding: 8px 12px;
    background: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 100;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: var(--tile-default);
}

.back-btn:active {
    transform: scale(0.95);
}

.new-word-btn {
    position: fixed;
    right: 10px;
    bottom: 60px;
    padding: 10px 16px;
    background: var(--correct);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: none;
}

.new-word-btn.show {
    display: block;
}

.new-word-btn:active {
    transform: scale(0.95);
}

/* Responsive adjustments for mobile */
@media (max-width: 500px) {
    .zen-mode-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
        bottom: 55px;
    }
    
    .zen-header {
        padding: 8px 10px;
    }
    
    .zen-stats {
        gap: 8px;
        font-size: 0.75rem;
    }
    
    .zen-stat {
        min-width: 40px;
    }
    
    .zen-stat-label {
        font-size: 0.6rem;
    }
    
    .zen-stat-value {
        font-size: 0.9rem;
    }
    
    .zen-mode-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        right: -20px;
        top: -6px;
    }
    
    .back-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .new-word-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
        bottom: 55px;
    }
}

@media (max-width: 380px) {
    .zen-stats {
        gap: 6px;
        font-size: 0.7rem;
    }
    
    .zen-stat {
        min-width: 35px;
    }
    
    .zen-stat-label {
        font-size: 0.55rem;
    }
    
    .zen-stat-value {
        font-size: 0.85rem;
    }
    
    .zen-mode-badge {
        font-size: 0.55rem;
        padding: 2px 5px;
        right: -18px;
    }
}

/* iPhone notch/punch-hole safe areas */
@supports (padding: max(0px)) {
    .zen-mode-btn {
        left: max(10px, env(safe-area-inset-left));
        bottom: max(60px, calc(env(safe-area-inset-bottom) + 50px));
    }
    
    .back-btn {
        bottom: max(10px, env(safe-area-inset-bottom));
        right: max(10px, env(safe-area-inset-right));
    }
    
    .new-word-btn {
        bottom: max(60px, calc(env(safe-area-inset-bottom) + 50px));
        right: max(10px, env(safe-area-inset-right));
    }
}